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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008421/0.0008422, allocations: 93.98 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002559/0.0002559, allocations: 4 kB / 351.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2253/0.2256, allocations: 50.4 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1217/0.3474, allocations: 93.73 MB / 495.2 MB, free: 2.707 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/0.3477, allocations: 97.52 kB / 495.3 MB, free: 2.613 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.417/0.7647, allocations: 84.11 MB / 0.5659 GB, free: 46.79 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.7647, allocations: 0 / 0.5659 GB, free: 46.79 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001812/0.7649, allocations: 68 kB / 0.5659 GB, free: 46.73 MB / 378.7 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.0117/0.7766, allocations: 4.324 MB / 0.5701 GB, free: 42.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.7767, allocations: 8.031 kB / 0.5701 GB, free: 42.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02248/0.7992, allocations: 6.605 MB / 0.5766 GB, free: 35.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0131/0.8123, allocations: 5.549 MB / 0.582 GB, free: 30.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001921/0.8125, allocations: 267 kB / 0.5823 GB, free: 29.83 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001302/0.8138, allocations: 359.8 kB / 0.5826 GB, free: 29.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01302/0.8269, allocations: 9.103 MB / 0.5915 GB, free: 19.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001364/0.827, allocations: 75.36 kB / 0.5916 GB, free: 19.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004246/0.8275, allocations: 175.9 kB / 0.5917 GB, free: 19.22 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009229/0.8284, allocations: 0.8884 MB / 0.5926 GB, free: 18.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01107/0.8395, allocations: 7.592 MB / 0.6 GB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04004/0.8796, allocations: 42.24 MB / 0.6413 GB, free: 15.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007818/0.8874, allocations: 3.754 MB / 0.6449 GB, free: 11.19 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004071/0.8879, allocations: 336 kB / 0.6453 GB, free: 10.81 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.146e-05/0.8879, allocations: 47.56 kB / 0.6453 GB, free: 10.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=160): time 7.464e-06/0.8879, allocations: 0 / 0.6453 GB, free: 10.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=189): time 0.04728/0.9352, allocations: 19.41 MB / 0.6643 GB, free: 7.152 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/0.9354, allocations: 252.7 kB / 0.6645 GB, free: 6.852 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005384/0.9408, allocations: 3.455 MB / 0.6679 GB, free: 3.371 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004048/0.9412, allocations: 49.7 kB / 0.6679 GB, free: 3.316 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001982/0.9432, allocations: 2.834 MB / 0.6707 GB, free: 460 kB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.253/1.196, allocations: 0.7144 MB / 0.6714 GB, free: 114.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000642/1.197, allocations: 106.5 kB / 0.6715 GB, free: 114.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003779/1.197, allocations: 0.5389 MB / 0.672 GB, free: 114.4 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003189/1.2, allocations: 2.085 MB / 0.6741 GB, free: 114.4 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003681/1.204, allocations: 5.32 MB / 0.6793 GB, free: 110.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003906/1.208, allocations: 3.277 MB / 0.6825 GB, free: 110.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.784e-05/1.208, allocations: 29.62 kB / 0.6825 GB, free: 110.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.0144/1.223, allocations: 8.416 MB / 0.6907 GB, free: 109.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.967e-05/1.223, allocations: 51.41 kB / 0.6907 GB, free: 109.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001275/1.223, allocations: 115.9 kB / 0.6909 GB, free: 109.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003716/1.227, allocations: 1.379 MB / 0.6922 GB, free: 109.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004298/1.231, allocations: 1.232 MB / 0.6934 GB, free: 109.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01047/1.241, allocations: 8.72 MB / 0.7019 GB, free: 106.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004443/1.246, allocations: 311.9 kB / 0.7022 GB, free: 106.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007083/1.247, allocations: 332.3 kB / 0.7025 GB, free: 106.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * 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 (653): * Single equations (assignments): 649 * 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%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003278/1.25, allocations: 1.935 MB / 0.7044 GB, free: 105.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006181/1.25, allocations: 357.9 kB / 0.7048 GB, free: 105.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006651/1.257, allocations: 3.912 MB / 0.7086 GB, free: 104.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-05/1.257, allocations: 23 kB / 0.7086 GB, free: 104.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.6e-05/1.257, allocations: 7.062 kB / 0.7086 GB, free: 104.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.263e-05/1.257, allocations: 11.27 kB / 0.7086 GB, free: 104.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01395/1.271, allocations: 8.901 MB / 0.7173 GB, free: 101.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/1.271, allocations: 2.562 kB / 0.7173 GB, free: 101.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001157/1.272, allocations: 259.3 kB / 0.7176 GB, free: 101.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003174/1.276, allocations: 1.22 MB / 0.7188 GB, free: 100.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001684/1.276, allocations: 31.81 kB / 0.7188 GB, free: 100.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009304/1.285, allocations: 7.867 MB / 0.7265 GB, free: 96.48 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/1.285, allocations: 1.969 kB / 0.7265 GB, free: 96.48 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009168/1.294, allocations: 6.816 MB / 0.7331 GB, free: 90.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001227/1.296, allocations: 404.5 kB / 0.7335 GB, free: 90.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004184/1.296, allocations: 28 kB / 0.7335 GB, free: 90.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001358/1.297, allocations: 111.6 kB / 0.7337 GB, free: 90.11 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002953/1.298, allocations: 109.3 kB / 0.7338 GB, free: 90.04 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/1.298, allocations: 51.8 kB / 0.7338 GB, free: 90 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003485/1.301, allocations: 2.449 MB / 0.7362 GB, free: 87.96 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.301, allocations: 0 / 0.7362 GB, free: 87.96 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005044/1.306, allocations: 0.9953 MB / 0.7372 GB, free: 86.98 MB / 442.7 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 (135): * Single equations (assignments): 131 * 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.0004385/1.307, allocations: 176.5 kB / 0.7373 GB, free: 86.82 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006936/1.314, allocations: 5.195 MB / 0.7424 GB, free: 82.28 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/1.314, allocations: 0 / 0.7424 GB, free: 82.28 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002697/1.316, allocations: 1.984 MB / 0.7444 GB, free: 80.55 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002309/1.319, allocations: 446.9 kB / 0.7448 GB, free: 80.17 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01484/1.334, allocations: 10.51 MB / 0.755 GB, free: 70.63 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002839/1.337, allocations: 3.168 MB / 0.7581 GB, free: 68.21 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004264/1.341, allocations: 1.824 MB / 0.7599 GB, free: 67.04 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006159/1.341, allocations: 236.7 kB / 0.7601 GB, free: 66.83 MB / 442.7 MB Notification: Performance of SimCode: time 1.152e-06/1.341, allocations: 7.938 kB / 0.7602 GB, free: 66.82 MB / 442.7 MB Notification: Performance of Templates: time 0.06157/1.403, allocations: 38.68 MB / 0.7979 GB, free: 31.14 MB / 442.7 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