Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.005465/0.005465, allocations: 114.5 kB / 21.97 MB, free: 5.223 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001621/0.001621, allocations: 216.2 kB / 25.28 MB, free: 3.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.308/1.308, allocations: 207.6 MB / 236 MB, free: 9.98 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 51.92 kB / 348 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.269, allocations: 49.17 MB / 397.2 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.009593/0.2786, allocations: 10.39 MB / 407.5 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008109/0.2867, allocations: 3.92 MB / 411.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001719/0.2884, allocations: 61.25 kB / 411.5 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004286/0.2927, allocations: 2.121 MB / 413.6 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004846/0.2975, allocations: 1.681 MB / 415.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001748/0.2993, allocations: 0.7011 MB / 416 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004935/0.3042, allocations: 3.383 MB / 419.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002915/0.3071, allocations: 2.238 MB / 421.6 MB, free: 9.129 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002133/0.3092, allocations: 1.29 MB / 422.9 MB, free: 8.414 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00267/0.3119, allocations: 1.92 MB / 424.9 MB, free: 7.238 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005059/0.3124, allocations: 261.8 kB / 425.1 MB, free: 7.238 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002176/0.3146, allocations: 1.144 MB / 426.3 MB, free: 6.121 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001597/0.3162, allocations: 1.62 MB / 427.9 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001919/0.3181, allocations: 1.872 MB / 429.7 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007017/0.3251, allocations: 5.98 MB / 435.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.3251, allocations: 4 kB / 435.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3251, allocations: 0 / 435.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001175/0.3253, allocations: 4 kB / 435.7 MB, free: 12.61 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.007533/0.3328, allocations: 4.184 MB / 439.9 MB, free: 8.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.3328, allocations: 19.98 kB / 439.9 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001042/0.3329, allocations: 89.52 kB / 440 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007831/0.3337, allocations: 0.6452 MB / 440.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006649/0.3404, allocations: 1.886 MB / 442.6 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004639/0.345, allocations: 2.302 MB / 444.9 MB, free: 3.367 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001723/0.3452, allocations: 209.2 kB / 445.1 MB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005981/0.3458, allocations: 263.9 kB / 445.3 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01862/0.3644, allocations: 9.985 MB / 455.3 MB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.385e-05/0.3645, allocations: 35.69 kB / 455.3 MB, free: 8.207 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003676/0.3649, allocations: 139.9 kB / 455.5 MB, free: 8.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003264/0.3681, allocations: 1.852 MB / 457.3 MB, free: 6.215 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01846/0.3866, allocations: 8.536 MB / 465.9 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04676/0.4333, allocations: 36.67 MB / 0.4908 GB, free: 7.953 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009331/0.4427, allocations: 3.07 MB / 0.4938 GB, free: 4.844 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002558/0.4452, allocations: 1.708 MB / 0.4954 GB, free: 3.125 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01099/0.4562, allocations: 6.625 MB / 0.5019 GB, free: 12.45 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.362e-05/0.4563, allocations: 55.5 kB / 0.5019 GB, free: 12.39 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 3.597e-06/0.4563, allocations: 0 / 0.5019 GB, free: 12.39 MB / 430.1 MB Notification: Performance of matching and sorting (n=166): time 0.0541/0.5104, allocations: 17.44 MB / 0.519 GB, free: 10.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.5105, allocations: 145.5 kB / 0.5191 GB, free: 10.71 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00533/0.5158, allocations: 3.503 MB / 0.5225 GB, free: 7.211 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001962/0.516, allocations: 49.7 kB / 0.5226 GB, free: 7.156 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002287/0.5183, allocations: 2.854 MB / 0.5254 GB, free: 4.277 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007171/0.519, allocations: 0.6706 MB / 0.526 GB, free: 3.602 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00147/0.5205, allocations: 1.124 MB / 0.5271 GB, free: 2.469 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.5206, allocations: 309 kB / 0.5274 GB, free: 2.164 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002945/0.5236, allocations: 1.943 MB / 0.5293 GB, free: 220 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005907/0.5295, allocations: 5.369 MB / 0.5346 GB, free: 9.125 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009963/0.5394, allocations: 7.912 MB / 0.5423 GB, free: 15.51 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.714e-05/0.5395, allocations: 32 kB / 0.5423 GB, free: 15.48 MB / 478.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01602/0.5555, allocations: 8.16 MB / 0.5503 GB, free: 7.305 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001088/0.5556, allocations: 56 kB / 0.5503 GB, free: 7.25 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002373/0.5559, allocations: 120 kB / 0.5505 GB, free: 7.133 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004234/0.5601, allocations: 1.296 MB / 0.5517 GB, free: 5.832 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003928/0.564, allocations: 1.252 MB / 0.5529 GB, free: 4.578 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2005/0.7645, allocations: 6.441 MB / 0.5592 GB, free: 141.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004064/0.7686, allocations: 307.4 kB / 0.5595 GB, free: 141.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004863/0.7691, allocations: 340.3 kB / 0.5599 GB, free: 141.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (681): * Single equations (assignments): 677 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003088/0.7721, allocations: 1.809 MB / 0.5616 GB, free: 141 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005935/0.7727, allocations: 333.2 kB / 0.5619 GB, free: 141 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007225/0.78, allocations: 3.346 MB / 0.5652 GB, free: 139.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.999e-05/0.78, allocations: 22.56 kB / 0.5652 GB, free: 139.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.459e-05/0.78, allocations: 8.062 kB / 0.5652 GB, free: 139.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.25e-05/0.78, allocations: 8.875 kB / 0.5652 GB, free: 139.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01295/0.793, allocations: 7.536 MB / 0.5726 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/0.793, allocations: 1.062 kB / 0.5726 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.794, allocations: 248 kB / 0.5728 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003417/0.7974, allocations: 1.12 MB / 0.5739 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000109/0.7976, allocations: 25.44 kB / 0.574 GB, free: 137.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007365/0.8049, allocations: 6.061 MB / 0.5799 GB, free: 134.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.8049, allocations: 0 / 0.5799 GB, free: 134.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007863/0.8128, allocations: 5.704 MB / 0.5854 GB, free: 132 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001168/0.814, allocations: 0.5153 MB / 0.5859 GB, free: 131.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003068/0.8143, allocations: 33.42 kB / 0.586 GB, free: 131.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.8154, allocations: 91.5 kB / 0.5861 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002319/0.8156, allocations: 94.66 kB / 0.5862 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/0.8157, allocations: 47.47 kB / 0.5862 GB, free: 131.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002584/0.8183, allocations: 2.161 MB / 0.5883 GB, free: 130.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.8183, allocations: 0 / 0.5883 GB, free: 130.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003514/0.8218, allocations: 0.912 MB / 0.5892 GB, free: 130.5 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007701/0.8295, allocations: 6.369 MB / 0.5954 GB, free: 125.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005667/0.8352, allocations: 4.592 MB / 0.5999 GB, free: 120.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.8352, allocations: 0 / 0.5999 GB, free: 120.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001653/0.8369, allocations: 1.419 MB / 0.6013 GB, free: 119.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001755/0.8386, allocations: 367.8 kB / 0.6016 GB, free: 119 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04251/0.8811, allocations: 41.37 MB / 0.642 GB, free: 72.39 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002155/0.8833, allocations: 2.851 MB / 0.6448 GB, free: 69.51 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003037/0.8863, allocations: 1.696 MB / 0.6465 GB, free: 67.81 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00147/0.8878, allocations: 1.589 MB / 0.648 GB, free: 66.22 MB / 478.1 MB Notification: Performance of SimCode: time 9.72e-07/0.8878, allocations: 0 / 0.648 GB, free: 66.22 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1018/0.9896, allocations: 65.47 MB / 0.712 GB, free: 0.6758 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.84/19.83, allocations: 19.83 kB / 0.712 GB, free: 0.6562 MB / 478.1 MB " [Timeout remaining time 640] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.163064324005973]