Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00123/0.00123, allocations: 104.9 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001436/0.001436, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 60.16 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08923/0.09057, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01237/0.103, allocations: 10.39 MB / 368 MB, free: 3.551 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1695/0.2725, allocations: 3.98 MB / 372 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001548/0.2741, allocations: 64.12 kB / 372 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0041/0.2783, allocations: 2.193 MB / 374.2 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004235/0.2825, allocations: 1.825 MB / 376 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00147/0.284, allocations: 0.7407 MB / 376.8 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006382/0.2904, allocations: 5.254 MB / 382 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003164/0.2936, allocations: 2.889 MB / 384.9 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001971/0.2956, allocations: 1.465 MB / 386.4 MB, free: 6.652 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002246/0.2978, allocations: 2.04 MB / 388.4 MB, free: 5.656 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006665/0.2985, allocations: 299.1 kB / 388.7 MB, free: 5.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001981/0.3005, allocations: 1.169 MB / 389.9 MB, free: 5.246 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001344/0.3019, allocations: 1.818 MB / 391.7 MB, free: 4.203 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001798/0.3037, allocations: 2.186 MB / 393.9 MB, free: 2.535 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005474/0.3091, allocations: 6.755 MB / 400.6 MB, free: 13.87 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.3092, allocations: 3.75 kB / 400.6 MB, free: 13.87 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3092, allocations: 0 / 400.6 MB, free: 13.87 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001525/0.3093, allocations: 0 / 400.6 MB, free: 13.87 MB / 318.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.01268/0.322, allocations: 4.909 MB / 405.6 MB, free: 8.977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.3221, allocations: 12.03 kB / 405.6 MB, free: 8.965 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000965/0.3231, allocations: 0.6216 MB / 406.2 MB, free: 8.367 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1733/0.4964, allocations: 12.28 MB / 418.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008655/0.5051, allocations: 3.637 MB / 422.1 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001886/0.5053, allocations: 201 kB / 422.3 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001061/0.5064, allocations: 274.7 kB / 422.6 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01539/0.5218, allocations: 8.724 MB / 431.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001612/0.522, allocations: 55.48 kB / 431.3 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006645/0.5227, allocations: 129.9 kB / 431.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00321/0.5259, allocations: 1.765 MB / 433.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01387/0.5398, allocations: 7.526 MB / 440.8 MB, free: 5.285 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04177/0.5816, allocations: 35.51 MB / 476.3 MB, free: 0.8867 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008089/0.5897, allocations: 3.691 MB / 480 MB, free: 13.06 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002493/0.5922, allocations: 2.033 MB / 482 MB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004301/0.5927, allocations: 337.2 kB / 482.3 MB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.886e-05/0.5928, allocations: 55.5 kB / 482.4 MB, free: 10.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=160): time 4.408e-06/0.5928, allocations: 0 / 482.4 MB, free: 10.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=190): time 0.05609/0.6489, allocations: 20 MB / 0.4906 GB, free: 6.457 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001485/0.649, allocations: 260.8 kB / 0.4909 GB, free: 6.148 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00625/0.6553, allocations: 3.934 MB / 0.4947 GB, free: 2.234 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002939/0.6556, allocations: 61.64 kB / 0.4948 GB, free: 2.168 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001974/0.6576, allocations: 2.811 MB / 0.4975 GB, free: 15.36 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000936/0.6586, allocations: 0.7271 MB / 0.4982 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001896/0.6605, allocations: 1.095 MB / 0.4993 GB, free: 13.53 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.6606, allocations: 301.1 kB / 0.4996 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002912/0.6635, allocations: 2.173 MB / 0.5017 GB, free: 11.05 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004813/0.6683, allocations: 5.402 MB / 0.507 GB, free: 4.031 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008858/0.6772, allocations: 8.194 MB / 0.515 GB, free: 10.25 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-05/0.6773, allocations: 32 kB / 0.515 GB, free: 10.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01677/0.6941, allocations: 8.644 MB / 0.5234 GB, free: 1.566 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001402/0.6943, allocations: 52 kB / 0.5235 GB, free: 1.516 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001863/0.6945, allocations: 119.9 kB / 0.5236 GB, free: 1.398 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1701/0.8646, allocations: 1.498 MB / 0.5251 GB, free: 138.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004489/0.8692, allocations: 1.222 MB / 0.5263 GB, free: 138.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01382/0.883, allocations: 9.957 MB / 0.536 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00445/0.8875, allocations: 318.2 kB / 0.5363 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000894/0.8884, allocations: 334.8 kB / 0.5366 GB, free: 134.6 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.003272/0.8917, allocations: 1.936 MB / 0.5385 GB, free: 133.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006745/0.8924, allocations: 359.5 kB / 0.5388 GB, free: 133.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007564/0.8999, allocations: 4.15 MB / 0.5429 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.235e-05/0.9, allocations: 20.84 kB / 0.5429 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.43e-05/0.9, allocations: 7.344 kB / 0.5429 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.916e-05/0.9, allocations: 12.84 kB / 0.5429 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01362/0.9137, allocations: 9.309 MB / 0.552 GB, free: 128.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.9137, allocations: 0 / 0.552 GB, free: 128.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001183/0.9149, allocations: 264 kB / 0.5523 GB, free: 128.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003492/0.9184, allocations: 1.349 MB / 0.5536 GB, free: 128.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001521/0.9186, allocations: 34.81 kB / 0.5536 GB, free: 128.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009782/0.9283, allocations: 8.952 MB / 0.5624 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.9284, allocations: 0 / 0.5624 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008874/0.9373, allocations: 7.041 MB / 0.5692 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007219/0.938, allocations: 403.1 kB / 0.5696 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004021/0.9384, allocations: 35.94 kB / 0.5697 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001448/0.9399, allocations: 119.8 kB / 0.5698 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003334/0.9402, allocations: 105.2 kB / 0.5699 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/0.9404, allocations: 48 kB / 0.5699 GB, free: 117.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002722/0.9431, allocations: 2.505 MB / 0.5724 GB, free: 114.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9431, allocations: 0 / 0.5724 GB, free: 114.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003634/0.9467, allocations: 0.991 MB / 0.5733 GB, free: 113.6 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.008976/0.9557, allocations: 7.697 MB / 0.5809 GB, free: 105.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007801/0.9635, allocations: 6.419 MB / 0.5871 GB, free: 99.57 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/0.9636, allocations: 3.844 kB / 0.5871 GB, free: 99.57 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002658/0.9662, allocations: 2.076 MB / 0.5892 GB, free: 97.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00247/0.9687, allocations: 0.4947 MB / 0.5896 GB, free: 97.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04883/1.018, allocations: 51.49 MB / 0.6399 GB, free: 38.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002406/1.02, allocations: 3.085 MB / 0.6429 GB, free: 35.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003799/1.024, allocations: 1.823 MB / 0.6447 GB, free: 33.58 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001919/1.026, allocations: 1.753 MB / 0.6464 GB, free: 31.82 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/1.026, allocations: 0 / 0.6464 GB, free: 31.82 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2556/1.281, allocations: 77.88 MB / 0.7225 GB, free: 142.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/12.49, allocations: 5 kB / 0.7225 GB, free: 142.7 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv","/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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches