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.0009066/0.0009067, allocations: 92.53 kB / 16.3 MB, free: 5.535 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.0009775/0.0009779, allocations: 187.2 kB / 17.2 MB, free: 5.469 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.271/1.271, allocations: 223.2 MB / 241.1 MB, free: 5.227 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002475/0.0002474, allocations: 12.34 kB / 300.7 MB, free: 5.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0965/0.09676, allocations: 50.41 MB / 351.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.02954/0.1263, allocations: 32.79 MB / 383.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01882/0.1452, allocations: 8.503 MB / 392.4 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00766/0.1529, allocations: 171.5 kB / 392.6 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005983/0.1589, allocations: 1.61 MB / 394.2 MB, free: 188 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01873/0.1777, allocations: 4.898 MB / 399.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00321/0.1809, allocations: 0.6162 MB / 399.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.2675/0.4484, allocations: 48.03 MB / 447.8 MB, free: 26.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005063/0.4536, allocations: 3.466 MB / 451.2 MB, free: 26.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001798/0.4554, allocations: 1.032 MB / 452.3 MB, free: 25.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002068/0.4575, allocations: 1.403 MB / 453.7 MB, free: 25.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006667/0.4582, allocations: 129.8 kB / 453.8 MB, free: 25.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001752/0.4599, allocations: 0.912 MB / 454.7 MB, free: 24.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001407/0.4613, allocations: 1.53 MB / 456.2 MB, free: 23.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008274/0.4622, allocations: 0.7754 MB / 457 MB, free: 23.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004593/0.4668, allocations: 5.402 MB / 462.4 MB, free: 18.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.4668, allocations: 4 kB / 462.4 MB, free: 18.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.4668, allocations: 0 / 462.4 MB, free: 18.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000168/0.467, allocations: 0 / 462.4 MB, free: 18.5 MB / 350.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.01006/0.4771, allocations: 4.248 MB / 466.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.4771, allocations: 12.03 kB / 466.7 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1637/0.6409, allocations: 14.46 MB / 481.1 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008532/0.6494, allocations: 3.378 MB / 484.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001824/0.6497, allocations: 203.7 kB / 484.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001026/0.6507, allocations: 268.9 kB / 485 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01495/0.6657, allocations: 8.803 MB / 493.8 MB, free: 7.059 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000119/0.6658, allocations: 50.61 kB / 493.8 MB, free: 7.027 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003345/0.6661, allocations: 127.2 kB / 493.9 MB, free: 6.992 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002944/0.6691, allocations: 1.765 MB / 495.7 MB, free: 5.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.015/0.6841, allocations: 7.617 MB / 0.4915 GB, free: 200 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04716/0.7313, allocations: 35.63 MB / 0.5263 GB, free: 356 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008008/0.7394, allocations: 3.756 MB / 0.53 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004082/0.7398, allocations: 326.9 kB / 0.5303 GB, free: 12.1 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.082e-05/0.7399, allocations: 54.94 kB / 0.5304 GB, free: 12.04 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 4.087e-06/0.7399, allocations: 0 / 0.5304 GB, free: 12.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.05586/0.7958, allocations: 20.76 MB / 0.5506 GB, free: 7.172 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.7959, allocations: 248.6 kB / 0.5509 GB, free: 6.871 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005759/0.8017, allocations: 4.176 MB / 0.5549 GB, free: 2.668 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005053/0.8022, allocations: 57.14 kB / 0.555 GB, free: 2.609 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002718/0.8049, allocations: 2.819 MB / 0.5578 GB, free: 15.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00152/0.8065, allocations: 0.7139 MB / 0.5585 GB, free: 15.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003504/0.8068, allocations: 108 kB / 0.5586 GB, free: 14.99 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004233/0.8073, allocations: 0.5445 MB / 0.5591 GB, free: 14.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004178/0.8115, allocations: 2.146 MB / 0.5612 GB, free: 12.29 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007181/0.8187, allocations: 5.356 MB / 0.5664 GB, free: 5.375 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006222/0.8249, allocations: 3.328 MB / 0.5697 GB, free: 2.148 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.791e-05/0.825, allocations: 32 kB / 0.5697 GB, free: 2.117 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01971/0.8448, allocations: 8.609 MB / 0.5781 GB, free: 9.789 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001801/0.845, allocations: 56 kB / 0.5782 GB, free: 9.734 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002621/0.8452, allocations: 114.5 kB / 0.5783 GB, free: 9.625 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004755/0.85, allocations: 1.519 MB / 0.5797 GB, free: 8.102 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004801/0.8548, allocations: 1.232 MB / 0.5809 GB, free: 6.871 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2297/1.085, allocations: 9.479 MB / 0.5902 GB, free: 154.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0048/1.089, allocations: 321.2 kB / 0.5905 GB, free: 154.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007744/1.09, allocations: 329 kB / 0.5908 GB, free: 154.6 MB / 462.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 (650): * Single equations (assignments): 646 * 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%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003408/1.094, allocations: 1.934 MB / 0.5927 GB, free: 154.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008238/1.094, allocations: 354.9 kB / 0.5931 GB, free: 154.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008259/1.103, allocations: 4.138 MB / 0.5971 GB, free: 154.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.909e-05/1.103, allocations: 24.58 kB / 0.5971 GB, free: 154.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.612e-05/1.103, allocations: 15.02 kB / 0.5971 GB, free: 154.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.028e-05/1.103, allocations: 10.23 kB / 0.5971 GB, free: 154.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01671/1.12, allocations: 9.315 MB / 0.6062 GB, free: 152.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.485e-05/1.12, allocations: 3.938 kB / 0.6062 GB, free: 152.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001193/1.121, allocations: 269.9 kB / 0.6065 GB, free: 152.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003401/1.124, allocations: 1.345 MB / 0.6078 GB, free: 152.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001506/1.124, allocations: 35.48 kB / 0.6078 GB, free: 152.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009527/1.134, allocations: 8.633 MB / 0.6163 GB, free: 148.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.134, allocations: 0 / 0.6163 GB, free: 148.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009345/1.143, allocations: 7.139 MB / 0.6233 GB, free: 145.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001023/1.144, allocations: 426.9 kB / 0.6237 GB, free: 145.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004282/1.145, allocations: 27.75 kB / 0.6237 GB, free: 145.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001441/1.146, allocations: 122 kB / 0.6238 GB, free: 145.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002879/1.147, allocations: 121.9 kB / 0.6239 GB, free: 145.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/1.147, allocations: 48.42 kB / 0.624 GB, free: 145 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003281/1.15, allocations: 2.682 MB / 0.6266 GB, free: 142.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/1.15, allocations: 0 / 0.6266 GB, free: 142.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004236/1.154, allocations: 1.029 MB / 0.6276 GB, free: 141.4 MB / 462.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 (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 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004634/1.155, allocations: 188 kB / 0.6278 GB, free: 141.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006346/1.161, allocations: 5.338 MB / 0.633 GB, free: 135.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/1.161, allocations: 0 / 0.633 GB, free: 135.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002646/1.164, allocations: 2.081 MB / 0.635 GB, free: 133.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002234/1.166, allocations: 450.3 kB / 0.6354 GB, free: 133.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/1.179, allocations: 10.65 MB / 0.6458 GB, free: 122.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002514/1.181, allocations: 3.169 MB / 0.6489 GB, free: 119.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003803/1.185, allocations: 1.826 MB / 0.6507 GB, free: 117.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006528/1.186, allocations: 247.4 kB / 0.651 GB, free: 117.6 MB / 462.1 MB Notification: Performance of SimCode: time 7.32e-07/1.186, allocations: 0 / 0.651 GB, free: 117.6 MB / 462.1 MB Notification: Performance of Templates: time 0.05683/1.242, allocations: 40.73 MB / 0.6907 GB, free: 77.12 MB / 462.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","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches