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.001475/0.001475, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.001663/0.001663, allocations: 192 kB / 18.62 MB, free: 4.434 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.33/1.33, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00104/0.00104, allocations: 55.05 kB / 302.1 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08416/0.08522, allocations: 49.43 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01036/0.09562, allocations: 10.42 MB / 361.9 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006934/0.1026, allocations: 3.964 MB / 365.9 MB, free: 5.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001144/0.1037, allocations: 63.81 kB / 365.9 MB, free: 5.188 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003688/0.1075, allocations: 2.2 MB / 368.1 MB, free: 2.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004216/0.1117, allocations: 1.856 MB / 370 MB, free: 1.121 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001431/0.1132, allocations: 0.7486 MB / 370.8 MB, free: 380 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1565/0.2697, allocations: 5.156 MB / 375.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003774/0.2735, allocations: 2.887 MB / 378.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002991/0.2765, allocations: 1.482 MB / 380.3 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003848/0.2804, allocations: 2.037 MB / 382.3 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008819/0.2813, allocations: 300 kB / 382.6 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002862/0.2842, allocations: 1.194 MB / 383.8 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001888/0.2861, allocations: 1.847 MB / 385.6 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002085/0.2882, allocations: 2.061 MB / 387.7 MB, free: 7.555 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005889/0.2941, allocations: 6.685 MB / 394.4 MB, free: 4.141 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.2941, allocations: 0 / 394.4 MB, free: 4.141 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2941, allocations: 0 / 394.4 MB, free: 4.141 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000144/0.2943, allocations: 0 / 394.4 MB, free: 4.141 MB / 302.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.008759/0.303, allocations: 4.672 MB / 399.1 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.3031, allocations: 10.03 kB / 399.1 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02347/0.3266, allocations: 3.08 MB / 402.2 MB, free: 14.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00867/0.3353, allocations: 3.334 MB / 405.5 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/0.3355, allocations: 193.5 kB / 405.7 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000768/0.3362, allocations: 280 kB / 406 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01322/0.3495, allocations: 8.857 MB / 414.8 MB, free: 1.711 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001102/0.3496, allocations: 51.95 kB / 414.9 MB, free: 1.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000327/0.3499, allocations: 129.4 kB / 415 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002829/0.3528, allocations: 1.76 MB / 416.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01325/0.366, allocations: 7.79 MB / 424.5 MB, free: 8.211 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04208/0.4082, allocations: 35.86 MB / 460.4 MB, free: 3.477 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007939/0.4162, allocations: 3.806 MB / 464.2 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002712/0.4189, allocations: 2.161 MB / 466.4 MB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004314/0.4193, allocations: 327.2 kB / 466.7 MB, free: 13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.488e-05/0.4194, allocations: 59.5 kB / 466.7 MB, free: 12.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.188e-06/0.4194, allocations: 0 / 466.7 MB, free: 12.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.05326/0.4727, allocations: 21.4 MB / 488.1 MB, free: 7.426 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.4728, allocations: 252.6 kB / 488.4 MB, free: 7.125 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005089/0.4779, allocations: 3.934 MB / 492.3 MB, free: 3.207 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002612/0.4782, allocations: 57.3 kB / 492.4 MB, free: 3.148 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001686/0.4799, allocations: 2.772 MB / 495.2 MB, free: 388 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006631/0.4806, allocations: 0.7245 MB / 495.9 MB, free: 15.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001438/0.482, allocations: 1.176 MB / 497.1 MB, free: 14.47 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.029e-05/0.4821, allocations: 313.1 kB / 497.4 MB, free: 14.16 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003032/0.4851, allocations: 2.381 MB / 499.7 MB, free: 11.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004965/0.4901, allocations: 5.633 MB / 0.4935 GB, free: 4.535 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01009/0.5002, allocations: 8.57 MB / 0.5019 GB, free: 10.4 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.338e-05/0.5003, allocations: 36 kB / 0.5019 GB, free: 10.37 MB / 430.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01751/0.5178, allocations: 9.626 MB / 0.5113 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.83e-05/0.5179, allocations: 52 kB / 0.5114 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001056/0.518, allocations: 116.9 kB / 0.5115 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00533/0.5234, allocations: 2.015 MB / 0.5135 GB, free: 14.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004011/0.5274, allocations: 1.287 MB / 0.5147 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01497/0.5424, allocations: 11.36 MB / 0.5258 GB, free: 1.754 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004463/0.5469, allocations: 343.4 kB / 0.5261 GB, free: 1.418 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005695/0.5475, allocations: 347.2 kB / 0.5265 GB, free: 1.082 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.1694/0.7169, allocations: 1.934 MB / 0.5284 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009312/0.7178, allocations: 342.3 kB / 0.5287 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009564/0.7274, allocations: 4.895 MB / 0.5335 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.11e-05/0.7275, allocations: 24.41 kB / 0.5335 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-05/0.7275, allocations: 9.375 kB / 0.5335 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.115e-05/0.7275, allocations: 9.016 kB / 0.5335 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01897/0.7465, allocations: 9.993 MB / 0.5433 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.438e-05/0.7465, allocations: 3.344 kB / 0.5433 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001255/0.7478, allocations: 269.1 kB / 0.5435 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004764/0.7526, allocations: 1.846 MB / 0.5453 GB, free: 140.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002188/0.7528, allocations: 35.84 kB / 0.5454 GB, free: 140.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01099/0.7638, allocations: 10.39 MB / 0.5555 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.87e-06/0.7639, allocations: 3.906 kB / 0.5555 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01077/0.7746, allocations: 7.943 MB / 0.5633 GB, free: 132.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001077/0.7757, allocations: 411.7 kB / 0.5637 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004254/0.7762, allocations: 32 kB / 0.5637 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001495/0.7777, allocations: 140.4 kB / 0.5638 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003385/0.778, allocations: 116.6 kB / 0.5639 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001388/0.7782, allocations: 51.98 kB / 0.564 GB, free: 131.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003088/0.7813, allocations: 2.48 MB / 0.5664 GB, free: 129.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7813, allocations: 4 kB / 0.5664 GB, free: 129.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00423/0.7855, allocations: 1.064 MB / 0.5675 GB, free: 128.4 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.0003995/0.7859, allocations: 175.3 kB / 0.5676 GB, free: 128.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006643/0.7926, allocations: 5.818 MB / 0.5733 GB, free: 122.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.7926, allocations: 3.875 kB / 0.5733 GB, free: 122.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002211/0.7948, allocations: 2.094 MB / 0.5754 GB, free: 120.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002426/0.7972, allocations: 464.9 kB / 0.5758 GB, free: 119.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01183/0.8091, allocations: 9.421 MB / 0.585 GB, free: 110.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002401/0.8115, allocations: 3.085 MB / 0.588 GB, free: 107.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003317/0.8148, allocations: 1.815 MB / 0.5898 GB, free: 105.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006032/0.8155, allocations: 239.4 kB / 0.59 GB, free: 105.4 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/0.8155, allocations: 0 / 0.59 GB, free: 105.4 MB / 446.1 MB Notification: Performance of Templates: time 0.05625/0.8717, allocations: 40.37 MB / 0.6294 GB, free: 65.33 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/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