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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001667/0.001667, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.001792/0.001792, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.248/1.248, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00108/0.00108, allocations: 50.86 kB / 300.7 MB, free: 5.754 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08423/0.08532, allocations: 49.45 MB / 350.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01051/0.09587, allocations: 10.41 MB / 360.6 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006807/0.1027, allocations: 3.968 MB / 364.5 MB, free: 5.852 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001337/0.1041, allocations: 63.81 kB / 364.6 MB, free: 5.789 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003959/0.1081, allocations: 2.203 MB / 366.8 MB, free: 3.578 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004004/0.1121, allocations: 1.844 MB / 368.7 MB, free: 1.727 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001486/0.1136, allocations: 0.7565 MB / 369.4 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1558/0.2694, allocations: 5.162 MB / 374.6 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004284/0.2737, allocations: 2.888 MB / 377.5 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002745/0.2765, allocations: 1.479 MB / 378.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003404/0.2799, allocations: 2.04 MB / 381 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001363/0.2813, allocations: 300.5 kB / 381.3 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003055/0.2844, allocations: 1.183 MB / 382.5 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002413/0.2868, allocations: 1.833 MB / 384.3 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002315/0.2891, allocations: 2.201 MB / 386.5 MB, free: 7.098 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00559/0.2947, allocations: 6.806 MB / 393.3 MB, free: 3.668 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2947, allocations: 0 / 393.3 MB, free: 3.668 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2948, allocations: 1 kB / 393.3 MB, free: 3.668 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000104/0.2949, allocations: 4 kB / 393.3 MB, free: 3.664 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.01077/0.3056, allocations: 4.921 MB / 398.2 MB, free: 372 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.3057, allocations: 10.44 kB / 398.2 MB, free: 372 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008332/0.3065, allocations: 0.6345 MB / 398.9 MB, free: 0 / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1631/0.4697, allocations: 12.28 MB / 411.1 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008453/0.4782, allocations: 3.844 MB / 415 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001301/0.4783, allocations: 198.2 kB / 415.2 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005826/0.4789, allocations: 284.9 kB / 415.5 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01256/0.4915, allocations: 8.728 MB / 424.2 MB, free: 7.305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001028/0.4916, allocations: 47.09 kB / 424.2 MB, free: 7.273 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003194/0.492, allocations: 126.8 kB / 424.4 MB, free: 7.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002807/0.4948, allocations: 1.771 MB / 426.1 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01276/0.5075, allocations: 7.53 MB / 433.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04102/0.5486, allocations: 35.5 MB / 469.2 MB, free: 9.902 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007851/0.5565, allocations: 3.706 MB / 472.9 MB, free: 6.059 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002379/0.5589, allocations: 2.035 MB / 474.9 MB, free: 4.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004201/0.5593, allocations: 326.5 kB / 475.2 MB, free: 3.652 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.325e-05/0.5594, allocations: 55.5 kB / 475.3 MB, free: 3.586 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 5.1e-06/0.5594, allocations: 0 / 475.3 MB, free: 3.586 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.05202/0.6114, allocations: 20.03 MB / 495.3 MB, free: 15.45 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.6116, allocations: 252.6 kB / 495.6 MB, free: 15.15 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006599/0.6182, allocations: 3.946 MB / 499.5 MB, free: 11.17 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002079/0.6184, allocations: 53.7 kB / 499.6 MB, free: 11.11 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002019/0.6204, allocations: 2.82 MB / 0.4906 GB, free: 8.297 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008083/0.6213, allocations: 0.7158 MB / 0.4913 GB, free: 7.586 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001896/0.6232, allocations: 1.099 MB / 0.4924 GB, free: 6.477 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.188e-05/0.6233, allocations: 305.1 kB / 0.4927 GB, free: 6.176 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00308/0.6264, allocations: 2.166 MB / 0.4948 GB, free: 4.004 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005125/0.6315, allocations: 5.412 MB / 0.5001 GB, free: 12.98 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008964/0.6405, allocations: 8.186 MB / 0.5081 GB, free: 3.234 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001025/0.6406, allocations: 32 kB / 0.5081 GB, free: 3.203 MB / 430.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01643/0.657, allocations: 8.666 MB / 0.5165 GB, free: 10.53 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001053/0.6572, allocations: 56 kB / 0.5166 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001472/0.6573, allocations: 112 kB / 0.5167 GB, free: 10.37 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004064/0.6614, allocations: 1.493 MB / 0.5182 GB, free: 8.871 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003691/0.6651, allocations: 1.22 MB / 0.5194 GB, free: 7.648 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1513/0.8164, allocations: 9.935 MB / 0.5291 GB, free: 142.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004102/0.8206, allocations: 320.8 kB / 0.5294 GB, free: 142.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007962/0.8214, allocations: 335.8 kB / 0.5297 GB, free: 142.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 (650): * Single equations (assignments): 646 * 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,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003022/0.8244, allocations: 1.937 MB / 0.5316 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006381/0.825, allocations: 350.1 kB / 0.5319 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007497/0.8326, allocations: 4.151 MB / 0.536 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.439e-05/0.8326, allocations: 24.19 kB / 0.536 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/0.8326, allocations: 10.25 kB / 0.536 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.128e-05/0.8327, allocations: 14.36 kB / 0.536 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01532/0.848, allocations: 9.298 MB / 0.5451 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.165e-05/0.848, allocations: 2.906 kB / 0.5451 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.8492, allocations: 270.8 kB / 0.5454 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003303/0.8525, allocations: 1.355 MB / 0.5467 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000167/0.8527, allocations: 35.55 kB / 0.5467 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009045/0.8617, allocations: 8.939 MB / 0.5554 GB, free: 133.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.8618, allocations: 6.328 kB / 0.5554 GB, free: 133.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008434/0.8702, allocations: 7.037 MB / 0.5623 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00065/0.8709, allocations: 407.5 kB / 0.5627 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003718/0.8712, allocations: 35.59 kB / 0.5627 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001347/0.8726, allocations: 122.2 kB / 0.5629 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002754/0.8729, allocations: 111.2 kB / 0.563 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/0.873, allocations: 50.33 kB / 0.563 GB, free: 130.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002708/0.8757, allocations: 2.501 MB / 0.5655 GB, free: 128.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.8757, allocations: 0 / 0.5655 GB, free: 128.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003382/0.8791, allocations: 1.011 MB / 0.5664 GB, free: 127.9 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 {(4,31,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008481/0.8876, allocations: 7.689 MB / 0.574 GB, free: 120.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007399/0.895, allocations: 6.425 MB / 0.5802 GB, free: 113.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/0.895, allocations: 0 / 0.5802 GB, free: 113.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002448/0.8975, allocations: 2.083 MB / 0.5823 GB, free: 111.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002235/0.8997, allocations: 498.4 kB / 0.5827 GB, free: 111.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04557/0.9453, allocations: 51.53 MB / 0.6331 GB, free: 52.68 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002342/0.9477, allocations: 3.087 MB / 0.6361 GB, free: 49.55 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003502/0.9512, allocations: 1.815 MB / 0.6379 GB, free: 47.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001721/0.9529, allocations: 1.757 MB / 0.6396 GB, free: 45.97 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.953, allocations: 3.938 kB / 0.6396 GB, free: 45.97 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.816/1.769, allocations: 77.99 MB / 0.7157 GB, free: 159.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/14.49, allocations: 6.844 kB / 0.7157 GB, free: 159.8 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > 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