Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") 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: 110.6 kB / 16.51 MB, free: 6.715 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.001212/0.001212, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.278/1.278, allocations: 222.9 MB / 241.1 MB, free: 13.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009274/0.0009274, allocations: 50.95 kB / 300 MB, free: 6.062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08132/0.08227, allocations: 49.45 MB / 349.4 MB, free: 4.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1966/0.2789, allocations: 38.37 MB / 387.8 MB, free: 5.117 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01874/0.2976, allocations: 8.665 MB / 396.4 MB, free: 15.85 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008349/0.306, allocations: 169.1 kB / 396.6 MB, free: 15.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004481/0.3106, allocations: 2.189 MB / 398.8 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004768/0.3154, allocations: 1.731 MB / 400.5 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001478/0.3169, allocations: 0.6829 MB / 401.2 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007858/0.3247, allocations: 7.207 MB / 408.4 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003229/0.328, allocations: 2.814 MB / 411.2 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001956/0.33, allocations: 1.3 MB / 412.5 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002821/0.3328, allocations: 2.188 MB / 414.7 MB, free: 3.508 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005429/0.3334, allocations: 196 kB / 414.9 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002077/0.3355, allocations: 1.154 MB / 416.1 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001546/0.337, allocations: 1.776 MB / 417.8 MB, free: 388 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001868/0.3389, allocations: 1.976 MB / 419.8 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005654/0.3446, allocations: 6.402 MB / 426.2 MB, free: 7.965 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3446, allocations: 0 / 426.2 MB, free: 7.965 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.3446, allocations: 4 kB / 426.2 MB, free: 7.961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.264e-05/0.3447, allocations: 0 / 426.2 MB, free: 7.961 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.008048/0.3527, allocations: 4.666 MB / 430.9 MB, free: 3.223 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.3528, allocations: 12.03 kB / 430.9 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02344/0.3762, allocations: 3.081 MB / 434 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007596/0.3839, allocations: 3.269 MB / 437.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/0.3841, allocations: 193 kB / 437.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008334/0.3849, allocations: 283.7 kB / 437.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01445/0.3994, allocations: 8.859 MB / 446.6 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001143/0.3995, allocations: 47.5 kB / 446.6 MB, free: 2.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003424/0.3999, allocations: 127.9 kB / 446.7 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002848/0.4027, allocations: 1.762 MB / 448.5 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01419/0.4169, allocations: 7.792 MB / 456.3 MB, free: 9.082 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04175/0.4587, allocations: 36.03 MB / 492.3 MB, free: 3.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007634/0.4664, allocations: 3.809 MB / 496.1 MB, free: 32 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00253/0.469, allocations: 2.16 MB / 498.3 MB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004075/0.4694, allocations: 328.1 kB / 498.6 MB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.954e-05/0.4694, allocations: 55.5 kB / 498.7 MB, free: 13.42 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 5.11e-06/0.4695, allocations: 0 / 498.7 MB, free: 13.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.05967/0.5291, allocations: 21.39 MB / 0.5079 GB, free: 7.898 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/0.5293, allocations: 256.6 kB / 0.5081 GB, free: 7.594 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006322/0.5357, allocations: 3.934 MB / 0.512 GB, free: 3.676 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004191/0.5361, allocations: 49.7 kB / 0.512 GB, free: 3.621 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001978/0.5381, allocations: 2.779 MB / 0.5147 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001009/0.5391, allocations: 0.7289 MB / 0.5154 GB, free: 72 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002305/0.5414, allocations: 1.174 MB / 0.5166 GB, free: 14.88 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.688e-05/0.5415, allocations: 305.1 kB / 0.5169 GB, free: 14.58 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003548/0.5451, allocations: 2.385 MB / 0.5192 GB, free: 12.19 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005848/0.551, allocations: 5.632 MB / 0.5247 GB, free: 4.938 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.187/0.7379, allocations: 8.571 MB / 0.5331 GB, free: 142.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001184/0.7381, allocations: 31.47 kB / 0.5331 GB, free: 142.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.02056/0.7587, allocations: 9.633 MB / 0.5425 GB, free: 139.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.104e-05/0.7588, allocations: 53.06 kB / 0.5426 GB, free: 139.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001355/0.759, allocations: 112.6 kB / 0.5427 GB, free: 139.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00552/0.7645, allocations: 2.023 MB / 0.5446 GB, free: 139.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003748/0.7682, allocations: 1.283 MB / 0.5459 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01226/0.7805, allocations: 10.59 MB / 0.5562 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003983/0.7845, allocations: 345.7 kB / 0.5566 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005476/0.7851, allocations: 335.2 kB / 0.5569 GB, free: 134.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * Number of states: 0 () * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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 (688): * Single equations (assignments): 684 * 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,35,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002371/0.7875, allocations: 1.955 MB / 0.5588 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004788/0.788, allocations: 341.9 kB / 0.5591 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007657/0.7956, allocations: 4.882 MB / 0.5639 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.888e-05/0.7957, allocations: 24.22 kB / 0.5639 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.7957, allocations: 9.375 kB / 0.5639 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.47e-05/0.7957, allocations: 9.844 kB / 0.5639 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01383/0.8096, allocations: 10.04 MB / 0.5737 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.264e-05/0.8096, allocations: 4.062 kB / 0.5737 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/0.8107, allocations: 271.6 kB / 0.574 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004595/0.8154, allocations: 1.842 MB / 0.5758 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001554/0.8155, allocations: 31.94 kB / 0.5758 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0103/0.8258, allocations: 9.718 MB / 0.5853 GB, free: 110.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.8259, allocations: 0 / 0.5853 GB, free: 110.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01116/0.837, allocations: 7.96 MB / 0.5931 GB, free: 102.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000969/0.838, allocations: 408.5 kB / 0.5935 GB, free: 102 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009235/0.8389, allocations: 32 kB / 0.5935 GB, free: 102 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002083/0.841, allocations: 131.8 kB / 0.5936 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003987/0.8415, allocations: 113.2 kB / 0.5937 GB, free: 101.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001441/0.8416, allocations: 47.98 kB / 0.5938 GB, free: 101.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003102/0.8447, allocations: 2.48 MB / 0.5962 GB, free: 99.24 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8447, allocations: 0 / 0.5962 GB, free: 99.24 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006123/0.8509, allocations: 1.07 MB / 0.5973 GB, free: 98.18 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * 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 (136): * Single equations (assignments): 132 * 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,33,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005032/0.8514, allocations: 173 kB / 0.5974 GB, free: 98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007617/0.859, allocations: 5.809 MB / 0.6031 GB, free: 92.21 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.859, allocations: 0 / 0.6031 GB, free: 92.21 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002442/0.8615, allocations: 2.093 MB / 0.6051 GB, free: 90.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003159/0.8647, allocations: 449.5 kB / 0.6056 GB, free: 89.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01555/0.8802, allocations: 11.29 MB / 0.6166 GB, free: 78.35 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003844/0.8841, allocations: 3.087 MB / 0.6196 GB, free: 75.22 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004102/0.8882, allocations: 1.819 MB / 0.6214 GB, free: 73.39 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008497/0.8891, allocations: 239.4 kB / 0.6216 GB, free: 73.16 MB / 446.1 MB Notification: Performance of SimCode: time 1.984e-06/0.8891, allocations: 0 / 0.6216 GB, free: 73.16 MB / 446.1 MB Notification: Performance of Templates: time 0.0631/0.9522, allocations: 43.45 MB / 0.664 GB, free: 29.93 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches