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.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 3.2.3+maint.om/package.mo", uses=false) 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.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: 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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 108.3 kB / 18.4 MB, free: 4.676 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.001088/0.001088, allocations: 186.2 kB / 19.34 MB, free: 3.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.253/1.253, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 47.94 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07158/0.07277, allocations: 46.62 MB / 375.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.1509/0.2236, allocations: 10.32 MB / 386.2 MB, free: 7.598 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006231/0.2299, allocations: 3.861 MB / 390 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001362/0.2313, allocations: 53.06 kB / 390.1 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003546/0.2349, allocations: 2.082 MB / 392.1 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003561/0.2385, allocations: 1.677 MB / 393.8 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001449/0.2399, allocations: 0.689 MB / 394.5 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003936/0.2439, allocations: 3.391 MB / 397.9 MB, free: 2.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002307/0.2462, allocations: 2.703 MB / 400.6 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00129/0.2475, allocations: 1.275 MB / 401.9 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001648/0.2491, allocations: 1.762 MB / 403.6 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003769/0.2495, allocations: 262.7 kB / 403.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00169/0.2512, allocations: 1.106 MB / 405 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001229/0.2525, allocations: 1.591 MB / 406.6 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001635/0.2541, allocations: 1.867 MB / 408.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00514/0.2593, allocations: 5.938 MB / 414.4 MB, free: 8.602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2593, allocations: 0 / 414.4 MB, free: 8.602 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2593, allocations: 1.375 kB / 414.4 MB, free: 8.602 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.814e-05/0.2594, allocations: 4 kB / 414.4 MB, free: 8.598 MB / 334.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.006496/0.2659, allocations: 4.132 MB / 418.5 MB, free: 4.684 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.2659, allocations: 12.03 kB / 418.6 MB, free: 4.672 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006796/0.2727, allocations: 1.852 MB / 420.4 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004956/0.2777, allocations: 1.966 MB / 422.4 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002332/0.2779, allocations: 209.2 kB / 422.6 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007413/0.2787, allocations: 267.8 kB / 422.8 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02615/0.3049, allocations: 9.977 MB / 432.8 MB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001385/0.305, allocations: 47.58 kB / 432.9 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005676/0.3056, allocations: 127.9 kB / 433 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004932/0.3105, allocations: 1.852 MB / 434.8 MB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02597/0.3365, allocations: 8.54 MB / 443.4 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05902/0.3956, allocations: 36.7 MB / 480.1 MB, free: 5.355 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01599/0.4116, allocations: 3.878 MB / 484 MB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003809/0.4154, allocations: 1.814 MB / 485.8 MB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01587/0.4313, allocations: 7.516 MB / 493.3 MB, free: 7.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.548e-05/0.4314, allocations: 55.5 kB / 493.3 MB, free: 7.598 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 5.34e-06/0.4314, allocations: 0 / 493.3 MB, free: 7.598 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.09232/0.5238, allocations: 17.45 MB / 0.4988 GB, free: 6.02 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.5239, allocations: 141.5 kB / 0.499 GB, free: 5.848 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005771/0.5297, allocations: 3.485 MB / 0.5024 GB, free: 2.359 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001553/0.5299, allocations: 45.7 kB / 0.5024 GB, free: 2.309 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001808/0.5317, allocations: 2.744 MB / 0.5051 GB, free: 15.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005542/0.5322, allocations: 0.6403 MB / 0.5057 GB, free: 14.88 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001454/0.5337, allocations: 1.123 MB / 0.5068 GB, free: 13.74 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.575e-05/0.5338, allocations: 301.1 kB / 0.5071 GB, free: 13.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003002/0.5368, allocations: 1.951 MB / 0.509 GB, free: 11.49 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005256/0.5421, allocations: 5.377 MB / 0.5142 GB, free: 4.395 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008607/0.5507, allocations: 7.932 MB / 0.522 GB, free: 10.76 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.337e-05/0.5508, allocations: 36.22 kB / 0.522 GB, free: 10.73 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01478/0.5656, allocations: 8.174 MB / 0.53 GB, free: 2.539 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.295e-05/0.5657, allocations: 56.09 kB / 0.5301 GB, free: 2.484 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001299/0.5658, allocations: 123.9 kB / 0.5302 GB, free: 2.363 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004259/0.5701, allocations: 1.297 MB / 0.5314 GB, free: 1.066 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003743/0.5738, allocations: 1.263 MB / 0.5327 GB, free: 15.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009426/0.5833, allocations: 6.542 MB / 0.5391 GB, free: 9.117 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003494/0.5868, allocations: 299.6 kB / 0.5394 GB, free: 8.824 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004616/0.5873, allocations: 348 kB / 0.5397 GB, free: 8.484 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 (685): * Single equations (assignments): 681 * 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.002574/0.5898, allocations: 1.81 MB / 0.5415 GB, free: 6.66 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005107/0.5904, allocations: 308 kB / 0.5418 GB, free: 6.355 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007582/0.5979, allocations: 3.365 MB / 0.545 GB, free: 2.973 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.809e-05/0.598, allocations: 11.97 kB / 0.545 GB, free: 2.961 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.598, allocations: 0 / 0.545 GB, free: 2.961 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/0.599, allocations: 0.5828 MB / 0.5456 GB, free: 2.355 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004469/0.5995, allocations: 20 kB / 0.5456 GB, free: 2.336 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001389/0.6009, allocations: 87.89 kB / 0.5457 GB, free: 2.25 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002675/0.6011, allocations: 100.8 kB / 0.5458 GB, free: 2.152 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.164/0.7651, allocations: 3.623 MB / 0.5494 GB, free: 148.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005671/0.7708, allocations: 4.627 MB / 0.5539 GB, free: 147.5 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001442/0.7723, allocations: 1.178 MB / 0.555 GB, free: 147 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003032/0.7753, allocations: 2.159 MB / 0.5571 GB, free: 146.3 MB / 478.1 MB Notification: Performance of Backend: time 4.31e-07/0.7753, allocations: 1.219 kB / 0.5571 GB, free: 146.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007396/0.7827, allocations: 3.964 MB / 0.561 GB, free: 145 MB / 478.1 MB Notification: Performance of SimCode: time 0.01031/0.7931, allocations: 7.954 MB / 0.5688 GB, free: 141.4 MB / 478.1 MB Notification: Performance of Templates: time 0.05655/0.8496, allocations: 41.22 MB / 0.609 GB, free: 111.4 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (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 & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) 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) Reference file matches