Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001115/0.001114, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 226.6 MB / 244.4 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007874/0.0007874, allocations: 100.9 kB / 296.4 MB, free: 7.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001984/0.0001985, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1674/0.1676, allocations: 51.3 MB / 407.5 MB, free: 27.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01874/0.1864, allocations: 31.42 MB / 438.9 MB, free: 12.35 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0129/0.1993, allocations: 7.467 MB / 446.4 MB, free: 4.867 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00324/0.2026, allocations: 143.7 kB / 446.5 MB, free: 4.727 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00259/0.2052, allocations: 1.578 MB / 448.1 MB, free: 3.141 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008738/0.214, allocations: 4.828 MB / 452.9 MB, free: 14.3 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001351/0.2153, allocations: 0.5694 MB / 453.5 MB, free: 13.73 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003761/0.2191, allocations: 3.857 MB / 457.4 MB, free: 9.859 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003798/0.2229, allocations: 3.365 MB / 460.7 MB, free: 6.441 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001144/0.2241, allocations: 1.039 MB / 461.8 MB, free: 5.398 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001652/0.2257, allocations: 1.655 MB / 463.4 MB, free: 3.738 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002543/0.226, allocations: 128 kB / 463.5 MB, free: 3.613 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001359/0.2274, allocations: 0.866 MB / 464.4 MB, free: 2.746 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001019/0.2284, allocations: 1.395 MB / 465.8 MB, free: 1.348 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005389/0.229, allocations: 0.7064 MB / 466.5 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003488/0.2324, allocations: 4.475 MB / 471 MB, free: 12.15 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2325, allocations: 0 / 471 MB, free: 12.15 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2325, allocations: 0 / 471 MB, free: 12.15 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.718e-05/0.2325, allocations: 0 / 471 MB, free: 12.15 MB / 346.7 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.00511/0.2377, allocations: 3.435 MB / 474.4 MB, free: 8.648 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.2377, allocations: 12.03 kB / 474.4 MB, free: 8.637 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005748/0.2434, allocations: 1.894 MB / 476.3 MB, free: 6.734 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002802/0.2463, allocations: 1.831 MB / 478.2 MB, free: 4.852 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001415/0.2464, allocations: 209.2 kB / 478.4 MB, free: 4.645 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003999/0.2468, allocations: 267.9 kB / 478.6 MB, free: 4.383 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01492/0.2618, allocations: 9.974 MB / 488.6 MB, free: 9.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.33e-05/0.2619, allocations: 35.66 kB / 488.6 MB, free: 9.695 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003204/0.2622, allocations: 139.8 kB / 488.8 MB, free: 9.559 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00274/0.2649, allocations: 1.856 MB / 490.6 MB, free: 7.699 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01589/0.2808, allocations: 8.509 MB / 499.1 MB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1882/0.4691, allocations: 36.82 MB / 0.5234 GB, free: 68.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007817/0.477, allocations: 3.87 MB / 0.5272 GB, free: 67.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001796/0.4788, allocations: 1.803 MB / 0.5289 GB, free: 66.28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007855/0.4867, allocations: 7.523 MB / 0.5363 GB, free: 61.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/0.4867, allocations: 55.67 kB / 0.5363 GB, free: 61.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=150): time 9.648e-06/0.4867, allocations: 0 / 0.5363 GB, free: 61.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=166): time 0.04256/0.5293, allocations: 17.37 MB / 0.5533 GB, free: 44.31 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.811e-05/0.5294, allocations: 141.5 kB / 0.5534 GB, free: 44.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00356/0.5329, allocations: 3.453 MB / 0.5568 GB, free: 40.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001597/0.5331, allocations: 53.7 kB / 0.5569 GB, free: 40.63 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001001/0.5341, allocations: 2.732 MB / 0.5595 GB, free: 37.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004287/0.5346, allocations: 0.6459 MB / 0.5602 GB, free: 37.26 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002349/0.5348, allocations: 116 kB / 0.5603 GB, free: 37.15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002029/0.535, allocations: 0.5337 MB / 0.5608 GB, free: 36.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002244/0.5373, allocations: 1.928 MB / 0.5627 GB, free: 34.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003193/0.5405, allocations: 5.353 MB / 0.5679 GB, free: 27.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003256/0.5437, allocations: 3.12 MB / 0.5709 GB, free: 24.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.505e-05/0.5438, allocations: 36 kB / 0.571 GB, free: 24.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01145/0.5553, allocations: 8.132 MB / 0.5789 GB, free: 16.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.507e-05/0.5554, allocations: 56 kB / 0.579 GB, free: 16.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.097e-05/0.5554, allocations: 124 kB / 0.5791 GB, free: 16.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003313/0.5588, allocations: 1.306 MB / 0.5804 GB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003109/0.5619, allocations: 1.275 MB / 0.5816 GB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006458/0.5683, allocations: 6.092 MB / 0.5876 GB, free: 7.344 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003425/0.5718, allocations: 302 kB / 0.5879 GB, free: 7.051 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003684/0.5722, allocations: 340 kB / 0.5882 GB, free: 6.719 MB / 378.7 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 (685): * Single equations (assignments): 681 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001975/0.5742, allocations: 1.818 MB / 0.59 GB, free: 4.887 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003595/0.5745, allocations: 304.1 kB / 0.5902 GB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00567/0.5802, allocations: 3.35 MB / 0.5935 GB, free: 1.219 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.439e-05/0.5802, allocations: 21.09 kB / 0.5935 GB, free: 1.199 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.5803, allocations: 4.688 kB / 0.5935 GB, free: 1.195 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.5803, allocations: 11.97 kB / 0.5936 GB, free: 1.184 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01246/0.5927, allocations: 7.591 MB / 0.601 GB, free: 9.539 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.439e-05/0.5928, allocations: 0 / 0.601 GB, free: 9.539 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001132/0.5939, allocations: 243.7 kB / 0.6012 GB, free: 9.301 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00361/0.5975, allocations: 1.12 MB / 0.6023 GB, free: 8.176 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000186/0.5978, allocations: 29.55 kB / 0.6023 GB, free: 8.148 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007936/0.6057, allocations: 5.724 MB / 0.6079 GB, free: 2.297 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.6057, allocations: 0 / 0.6079 GB, free: 2.297 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00939/0.6151, allocations: 5.706 MB / 0.6135 GB, free: 12.56 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007841/0.6159, allocations: 357 kB / 0.6138 GB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000347/0.6163, allocations: 28 kB / 0.6138 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/0.6176, allocations: 87.88 kB / 0.6139 GB, free: 12.08 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002047/0.6178, allocations: 92.83 kB / 0.614 GB, free: 11.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.6179, allocations: 40 kB / 0.6141 GB, free: 11.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003199/0.6211, allocations: 2.134 MB / 0.6161 GB, free: 9.824 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6211, allocations: 0 / 0.6161 GB, free: 9.824 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004371/0.6255, allocations: 0.9126 MB / 0.617 GB, free: 8.918 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004321/0.626, allocations: 160.5 kB / 0.6172 GB, free: 8.758 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007395/0.6334, allocations: 4.759 MB / 0.6218 GB, free: 4.023 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.6334, allocations: 0 / 0.6218 GB, free: 4.023 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002367/0.6358, allocations: 1.539 MB / 0.6233 GB, free: 2.477 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00217/0.638, allocations: 348.9 kB / 0.6237 GB, free: 2.137 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01464/0.6526, allocations: 9.89 MB / 0.6333 GB, free: 8.195 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002777/0.6555, allocations: 2.851 MB / 0.6361 GB, free: 5.312 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008803/0.6564, allocations: 267.3 kB / 0.6364 GB, free: 5.055 MB / 426.7 MB Notification: Performance of SimCode: time 7.41e-07/0.6564, allocations: 0 / 0.6364 GB, free: 5.055 MB / 426.7 MB Notification: Performance of Templates: time 0.2454/0.9018, allocations: 65.21 MB / 0.7 GB, free: 144 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches