Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 103.7 kB / 16.62 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.242/1.242, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001044/0.001044, allocations: 52.98 kB / 300.2 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1145, allocations: 49.44 MB / 349.7 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2752/0.3897, allocations: 34.75 MB / 384.4 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02242/0.4122, allocations: 7.812 MB / 392.2 MB, free: 3.211 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01055/0.4228, allocations: 141.4 kB / 392.4 MB, free: 3.191 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004928/0.4278, allocations: 1.992 MB / 394.4 MB, free: 2.289 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005933/0.4338, allocations: 1.536 MB / 395.9 MB, free: 1.633 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001869/0.4356, allocations: 0.6424 MB / 396.6 MB, free: 1.363 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005518/0.4412, allocations: 3.391 MB / 399.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004137/0.4453, allocations: 2.848 MB / 402.8 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002247/0.4476, allocations: 1.266 MB / 404.1 MB, free: 13.24 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002812/0.4504, allocations: 1.944 MB / 406 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006275/0.4511, allocations: 263.7 kB / 406.3 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002419/0.4535, allocations: 1.141 MB / 407.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001495/0.455, allocations: 1.597 MB / 409 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001869/0.4569, allocations: 1.895 MB / 410.9 MB, free: 7.539 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007159/0.464, allocations: 5.779 MB / 416.7 MB, free: 1.742 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.4641, allocations: 0 / 416.7 MB, free: 1.742 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.877e-06/0.4641, allocations: 4 kB / 416.7 MB, free: 1.738 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000105/0.4642, allocations: 0 / 416.7 MB, free: 1.738 MB / 318.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.008257/0.4725, allocations: 4.145 MB / 420.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.673e-05/0.4725, allocations: 12.03 kB / 420.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007993/0.4734, allocations: 0.6374 MB / 421.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006462/0.4798, allocations: 1.864 MB / 423.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003964/0.4838, allocations: 2.179 MB / 425.5 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000163/0.484, allocations: 209.2 kB / 425.7 MB, free: 8.559 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004607/0.4845, allocations: 275.8 kB / 426 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01837/0.5028, allocations: 9.97 MB / 436 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001703/0.503, allocations: 39.67 kB / 436 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007162/0.5038, allocations: 131.9 kB / 436.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003438/0.5072, allocations: 1.852 MB / 438 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01914/0.5264, allocations: 8.532 MB / 446.5 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05366/0.5801, allocations: 36.85 MB / 483.4 MB, free: 13.19 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01038/0.5905, allocations: 3.892 MB / 487.3 MB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002719/0.5933, allocations: 1.814 MB / 489.1 MB, free: 7.277 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01301/0.6063, allocations: 7.52 MB / 496.6 MB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.874e-05/0.6064, allocations: 51.5 kB / 496.6 MB, free: 15.41 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 5.59e-06/0.6064, allocations: 4 kB / 496.6 MB, free: 15.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.05335/0.6598, allocations: 17.41 MB / 0.502 GB, free: 13.87 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.821e-05/0.6599, allocations: 149.5 kB / 0.5021 GB, free: 13.69 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00615/0.666, allocations: 3.481 MB / 0.5055 GB, free: 10.21 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000184/0.6662, allocations: 49.7 kB / 0.5056 GB, free: 10.15 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002478/0.6687, allocations: 2.728 MB / 0.5083 GB, free: 7.387 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000662/0.6694, allocations: 0.648 MB / 0.5089 GB, free: 6.73 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001504/0.6709, allocations: 1.115 MB / 0.51 GB, free: 5.605 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.671, allocations: 305.1 kB / 0.5103 GB, free: 5.305 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002851/0.6739, allocations: 1.943 MB / 0.5122 GB, free: 3.355 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005593/0.6795, allocations: 5.358 MB / 0.5174 GB, free: 12.28 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009323/0.6888, allocations: 7.921 MB / 0.5251 GB, free: 2.664 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.263e-05/0.6889, allocations: 36 kB / 0.5252 GB, free: 2.629 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.1773/0.8663, allocations: 8.146 MB / 0.5331 GB, free: 147.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001108/0.8664, allocations: 57.3 kB / 0.5332 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002091/0.8666, allocations: 120.5 kB / 0.5333 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004334/0.871, allocations: 1.304 MB / 0.5346 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004209/0.8752, allocations: 1.253 MB / 0.5358 GB, free: 147.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009028/0.8843, allocations: 6.552 MB / 0.5422 GB, free: 144 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004178/0.8885, allocations: 298.7 kB / 0.5425 GB, free: 143.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009805/0.8895, allocations: 340 kB / 0.5428 GB, free: 143.8 MB / 446.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.003185/0.8927, allocations: 1.811 MB / 0.5446 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005769/0.8933, allocations: 302.6 kB / 0.5449 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006149/0.8994, allocations: 3.373 MB / 0.5482 GB, free: 141.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.578e-05/0.8995, allocations: 26.27 kB / 0.5482 GB, free: 141.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.8995, allocations: 3.594 kB / 0.5482 GB, free: 141.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.8995, allocations: 7.641 kB / 0.5482 GB, free: 141.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01117/0.9107, allocations: 7.606 MB / 0.5556 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.9107, allocations: 4 kB / 0.5556 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009684/0.9117, allocations: 240.8 kB / 0.5558 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003247/0.915, allocations: 1.122 MB / 0.5569 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001532/0.9151, allocations: 27.41 kB / 0.557 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006496/0.9216, allocations: 6.173 MB / 0.563 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.9216, allocations: 0 / 0.563 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00738/0.929, allocations: 5.704 MB / 0.5686 GB, free: 127.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006565/0.9297, allocations: 358.4 kB / 0.5689 GB, free: 127.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003293/0.9301, allocations: 24 kB / 0.5689 GB, free: 127.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/0.9312, allocations: 87.88 kB / 0.569 GB, free: 127.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002434/0.9314, allocations: 92.88 kB / 0.5691 GB, free: 127.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.9316, allocations: 40 kB / 0.5691 GB, free: 127.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00227/0.9338, allocations: 2.158 MB / 0.5712 GB, free: 125 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.9338, allocations: 0 / 0.5712 GB, free: 125 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00347/0.9373, allocations: 0.9058 MB / 0.5721 GB, free: 124.1 MB / 446.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.007247/0.9446, allocations: 6.358 MB / 0.5783 GB, free: 117.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006612/0.9512, allocations: 5.537 MB / 0.5838 GB, free: 112.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.9512, allocations: 0 / 0.5838 GB, free: 112.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001656/0.9529, allocations: 1.541 MB / 0.5853 GB, free: 110.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001676/0.9546, allocations: 351.7 kB / 0.5856 GB, free: 110.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05256/1.007, allocations: 46.94 MB / 0.6314 GB, free: 56.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002845/1.01, allocations: 2.851 MB / 0.6342 GB, free: 53.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003537/1.014, allocations: 1.699 MB / 0.6359 GB, free: 52.03 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001704/1.015, allocations: 1.592 MB / 0.6374 GB, free: 50.44 MB / 446.1 MB Notification: Performance of SimCode: time 9.21e-07/1.015, allocations: 0 / 0.6374 GB, free: 50.44 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6801/1.695, allocations: 63.52 MB / 0.6995 GB, free: 154.9 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001498/1.696, allocations: 248.2 kB / 0.6997 GB, free: 154.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.855/5.551, allocations: 0.7812 kB / 0.6997 GB, free: 154.6 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches