Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_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.001238/0.001238, allocations: 107.4 kB / 17.16 MB, free: 6.305 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.001272/0.001272, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.417/1.417, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001075/0.001075, allocations: 52.14 kB / 280.1 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08161/0.0827, allocations: 46.63 MB / 326.7 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03095/0.1137, allocations: 38.42 MB / 365.1 MB, free: 14.22 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01655/0.1303, allocations: 8.664 MB / 373.8 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00575/0.1361, allocations: 167.6 kB / 374 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003774/0.1399, allocations: 2.178 MB / 376.1 MB, free: 3.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003996/0.1439, allocations: 1.744 MB / 377.9 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001316/0.1452, allocations: 0.6982 MB / 378.6 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1887/0.3339, allocations: 6.713 MB / 385.3 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00498/0.339, allocations: 2.816 MB / 388.1 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003068/0.3421, allocations: 1.314 MB / 389.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003869/0.346, allocations: 2.195 MB / 391.6 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008508/0.3468, allocations: 197.6 kB / 391.8 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002831/0.3497, allocations: 1.146 MB / 393 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002173/0.3519, allocations: 1.772 MB / 394.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002704/0.3546, allocations: 2.087 MB / 396.8 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006635/0.3612, allocations: 6.749 MB / 403.6 MB, free: 6.426 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.3613, allocations: 6.562 kB / 403.6 MB, free: 6.422 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3613, allocations: 0 / 403.6 MB, free: 6.422 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001895/0.3615, allocations: 0 / 403.6 MB, free: 6.422 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.01331/0.3748, allocations: 4.956 MB / 408.5 MB, free: 3.156 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.907e-05/0.3749, allocations: 11.09 kB / 408.5 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009729/0.3758, allocations: 0.6212 MB / 409.2 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1396/0.5154, allocations: 12.28 MB / 421.4 MB, free: 9.098 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01008/0.5255, allocations: 4.177 MB / 425.6 MB, free: 5.051 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001632/0.5258, allocations: 196.4 kB / 425.8 MB, free: 4.887 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008943/0.5267, allocations: 273.3 kB / 426.1 MB, free: 4.652 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01504/0.5417, allocations: 8.723 MB / 434.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001313/0.5419, allocations: 53.05 kB / 434.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000376/0.5423, allocations: 127.4 kB / 435 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00291/0.5452, allocations: 1.774 MB / 436.7 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01396/0.5591, allocations: 7.528 MB / 444.3 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04039/0.5996, allocations: 35.54 MB / 479.8 MB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007737/0.6073, allocations: 3.692 MB / 483.5 MB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002612/0.61, allocations: 2.031 MB / 485.5 MB, free: 8.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000371/0.6104, allocations: 331.8 kB / 485.9 MB, free: 7.809 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.403e-05/0.6104, allocations: 55.61 kB / 485.9 MB, free: 7.746 MB / 398.1 MB Notification: Performance of pre-optimization done (n=160): time 3.827e-06/0.6104, allocations: 0 / 485.9 MB, free: 7.746 MB / 398.1 MB Notification: Performance of matching and sorting (n=190): time 0.05106/0.6615, allocations: 20.15 MB / 0.4942 GB, free: 3.551 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001508/0.6617, allocations: 259.7 kB / 0.4944 GB, free: 3.242 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005491/0.6672, allocations: 3.979 MB / 0.4983 GB, free: 15.23 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004299/0.6676, allocations: 53.7 kB / 0.4984 GB, free: 15.18 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001942/0.6696, allocations: 2.82 MB / 0.5011 GB, free: 12.36 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008863/0.6705, allocations: 0.7189 MB / 0.5018 GB, free: 11.64 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001453/0.672, allocations: 1.101 MB / 0.5029 GB, free: 10.53 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.6721, allocations: 305.1 kB / 0.5032 GB, free: 10.23 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00291/0.675, allocations: 2.166 MB / 0.5053 GB, free: 8.059 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005323/0.6803, allocations: 5.402 MB / 0.5106 GB, free: 1.098 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009388/0.6897, allocations: 8.192 MB / 0.5186 GB, free: 7.793 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.611e-05/0.6898, allocations: 32 kB / 0.5186 GB, free: 7.762 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01624/0.7061, allocations: 8.661 MB / 0.5271 GB, free: 15.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.216e-05/0.7062, allocations: 52 kB / 0.5271 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001217/0.7063, allocations: 120 kB / 0.5272 GB, free: 15.53 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004088/0.7104, allocations: 1.496 MB / 0.5287 GB, free: 14.03 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003888/0.7143, allocations: 1.224 MB / 0.5299 GB, free: 12.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01268/0.727, allocations: 9.245 MB / 0.5389 GB, free: 3.422 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004239/0.7313, allocations: 326 kB / 0.5392 GB, free: 3.105 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007657/0.7321, allocations: 328 kB / 0.5396 GB, free: 2.785 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 (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.003469/0.7356, allocations: 1.932 MB / 0.5414 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008166/0.7364, allocations: 359.3 kB / 0.5418 GB, free: 496 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1845/0.9209, allocations: 4.153 MB / 0.5458 GB, free: 135.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.306e-05/0.9209, allocations: 23.88 kB / 0.5459 GB, free: 135.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/0.921, allocations: 10.48 kB / 0.5459 GB, free: 135.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.04e-05/0.921, allocations: 14.62 kB / 0.5459 GB, free: 135.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01575/0.9367, allocations: 9.307 MB / 0.555 GB, free: 134.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.9368, allocations: 2.531 kB / 0.555 GB, free: 134.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001185/0.938, allocations: 267.6 kB / 0.5552 GB, free: 134.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003624/0.9416, allocations: 1.347 MB / 0.5566 GB, free: 134.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001793/0.9418, allocations: 39.81 kB / 0.5566 GB, free: 134.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009855/0.9517, allocations: 8.327 MB / 0.5647 GB, free: 131 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.9517, allocations: 1.844 kB / 0.5647 GB, free: 131 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009048/0.9607, allocations: 7.045 MB / 0.5716 GB, free: 128.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/0.9622, allocations: 0.6935 MB / 0.5723 GB, free: 128.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003937/0.9626, allocations: 34.77 kB / 0.5723 GB, free: 128.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/0.964, allocations: 119.8 kB / 0.5724 GB, free: 128.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003739/0.9644, allocations: 114.4 kB / 0.5725 GB, free: 128.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001311/0.9645, allocations: 46.72 kB / 0.5726 GB, free: 128.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003248/0.9678, allocations: 2.536 MB / 0.5751 GB, free: 127.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.9678, allocations: 0 / 0.5751 GB, free: 127.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003969/0.9717, allocations: 1.004 MB / 0.576 GB, free: 127.2 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 (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.009077/0.9808, allocations: 7.686 MB / 0.5835 GB, free: 122.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006914/0.9878, allocations: 5.355 MB / 0.5888 GB, free: 117.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.206e-06/0.9878, allocations: 4 kB / 0.5888 GB, free: 117.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002742/0.9906, allocations: 2.076 MB / 0.5908 GB, free: 115.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003306/0.9939, allocations: 473.3 kB / 0.5913 GB, free: 115.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07149/1.065, allocations: 53.49 MB / 0.6435 GB, free: 55.03 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002598/1.068, allocations: 3.103 MB / 0.6465 GB, free: 51.89 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003744/1.072, allocations: 1.82 MB / 0.6483 GB, free: 50.07 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001742/1.074, allocations: 1.761 MB / 0.65 GB, free: 48.3 MB / 462.1 MB Notification: Performance of SimCode: time 8.02e-07/1.074, allocations: 4 kB / 0.65 GB, free: 48.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2805/1.354, allocations: 76.47 MB / 0.7247 GB, free: 184.4 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001612/1.354, allocations: 236.8 kB / 0.7249 GB, free: 184.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.999/5.353, allocations: 4 kB / 0.7249 GB, free: 184.1 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches