Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001256/0.001256, allocations: 117.6 kB / 17.79 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00134/0.00134, allocations: 200.7 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001791/0.001791, allocations: 67.88 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.283/0.2848, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.0209/0.3058, allocations: 18.03 MB / 426.8 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01404/0.3198, allocations: 6.044 MB / 432.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004015/0.3239, allocations: 147.6 kB / 433 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01209/0.3361, allocations: 6.242 MB / 439.2 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008634/0.3447, allocations: 2.813 MB / 442 MB, free: 136 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005262/0.35, allocations: 2.265 MB / 444.3 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0149/0.365, allocations: 9.688 MB / 454 MB, free: 4.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01134/0.3764, allocations: 8.422 MB / 462.4 MB, free: 11.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00622/0.3826, allocations: 3.175 MB / 465.6 MB, free: 8.453 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007339/0.39, allocations: 4.152 MB / 469.7 MB, free: 4.289 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0024/0.3924, allocations: 0.7187 MB / 470.5 MB, free: 3.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00483/0.3973, allocations: 1.889 MB / 472.3 MB, free: 1.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006309/0.4036, allocations: 3.768 MB / 476.1 MB, free: 13.9 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009107/0.4128, allocations: 4.403 MB / 480.5 MB, free: 9.477 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0223/0.4351, allocations: 13.87 MB / 494.4 MB, free: 11.55 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.4351, allocations: 0 / 494.4 MB, free: 11.55 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4352, allocations: 0 / 494.4 MB, free: 11.55 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005011/0.4357, allocations: 0 / 494.4 MB, free: 11.55 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.03308/0.4688, allocations: 9.652 MB / 0.4922 GB, free: 1.801 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.652e-05/0.4688, allocations: 12.03 kB / 0.4922 GB, free: 1.789 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004113/0.4729, allocations: 1.135 MB / 0.4933 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2754/0.7483, allocations: 23.27 MB / 0.5161 GB, free: 9.34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01977/0.7682, allocations: 7.571 MB / 0.5235 GB, free: 1.695 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004296/0.7686, allocations: 439.6 kB / 0.5239 GB, free: 1.266 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002522/0.7712, allocations: 0.5894 MB / 0.5245 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5087/1.28, allocations: 16.85 MB / 0.5409 GB, free: 114.8 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005086/1.28, allocations: 80.3 kB / 0.541 GB, free: 114.8 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002082/1.283, allocations: 269.4 kB / 0.5412 GB, free: 114.8 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005212/1.288, allocations: 2.663 MB / 0.5438 GB, free: 114.6 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0279/1.316, allocations: 14.39 MB / 0.5579 GB, free: 108.9 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07269/1.388, allocations: 63.79 MB / 0.6202 GB, free: 45.26 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01994/1.408, allocations: 8.645 MB / 0.6286 GB, free: 36.46 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004938/1.413, allocations: 4.917 MB / 0.6334 GB, free: 31.54 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02224/1.436, allocations: 18.14 MB / 0.6512 GB, free: 13.32 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.562e-05/1.436, allocations: 60.56 kB / 0.6512 GB, free: 13.25 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 6.192e-06/1.436, allocations: 0 / 0.6512 GB, free: 13.25 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2511/1.687, allocations: 73.14 MB / 0.7226 GB, free: 4.434 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002632/1.687, allocations: 376.6 kB / 0.723 GB, free: 3.984 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01183/1.699, allocations: 6.425 MB / 0.7293 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00125/1.7, allocations: 81.7 kB / 0.7294 GB, free: 13.58 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.005032/1.705, allocations: 5.014 MB / 0.7342 GB, free: 8.59 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002643/1.708, allocations: 1.442 MB / 0.7357 GB, free: 7.137 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003806/1.712, allocations: 1.837 MB / 0.7374 GB, free: 5.285 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001453/1.712, allocations: 313.1 kB / 0.7377 GB, free: 4.977 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2303/1.942, allocations: 5.653 MB / 0.7433 GB, free: 183 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01081/1.953, allocations: 10.61 MB / 0.7536 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01987/1.973, allocations: 17.36 MB / 0.7706 GB, free: 163.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001649/1.973, allocations: 55.53 kB / 0.7706 GB, free: 163.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04032/2.014, allocations: 21.99 MB / 0.7921 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001163/2.014, allocations: 82.75 kB / 0.7922 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002112/2.014, allocations: 172 kB / 0.7924 GB, free: 151.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01864/2.033, allocations: 6.859 MB / 0.7991 GB, free: 144.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006812/2.04, allocations: 2.082 MB / 0.8011 GB, free: 142.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04022/2.08, allocations: 36.41 MB / 0.8366 GB, free: 106.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008911/2.089, allocations: 0.7092 MB / 0.8373 GB, free: 105.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001658/2.09, allocations: 0.5151 MB / 0.8378 GB, free: 104.9 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1015): * Single equations (assignments): 1008 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.005817/2.096, allocations: 3.418 MB / 0.8412 GB, free: 101.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001559/2.098, allocations: 0.617 MB / 0.8418 GB, free: 101.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02654/2.124, allocations: 16.1 MB / 0.8575 GB, free: 85.15 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.742e-05/2.125, allocations: 48 kB / 0.8576 GB, free: 85.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.592e-05/2.125, allocations: 16 kB / 0.8576 GB, free: 85.09 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.928e-05/2.125, allocations: 24.59 kB / 0.8576 GB, free: 85.06 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04839/2.173, allocations: 31.31 MB / 0.8882 GB, free: 53.47 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.403e-05/2.173, allocations: 4.703 kB / 0.8882 GB, free: 53.46 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003114/2.176, allocations: 0.608 MB / 0.8888 GB, free: 52.86 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0171/2.193, allocations: 6.431 MB / 0.895 GB, free: 46.41 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000888/2.194, allocations: 64 kB / 0.8951 GB, free: 46.35 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03743/2.232, allocations: 34.64 MB / 0.9289 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/2.232, allocations: 9.531 kB / 0.9289 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3348/2.567, allocations: 23.57 MB / 0.952 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001768/2.568, allocations: 0.6619 MB / 0.9526 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001106/2.57, allocations: 59.66 kB / 0.9527 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00388/2.573, allocations: 426.2 kB / 0.9531 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001226/2.575, allocations: 251.2 kB / 0.9533 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000336/2.575, allocations: 97.03 kB / 0.9534 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006326/2.581, allocations: 4.104 MB / 0.9574 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/2.581, allocations: 0 / 0.9574 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009721/2.591, allocations: 2.183 MB / 0.9595 GB, free: 163.2 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03488/2.626, allocations: 24.36 MB / 0.9833 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01769/2.644, allocations: 14.3 MB / 0.9973 GB, free: 138.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.368e-06/2.644, allocations: 0 / 0.9973 GB, free: 138.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008236/2.652, allocations: 6.578 MB / 1.004 GB, free: 131.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005276/2.657, allocations: 0.936 MB / 1.005 GB, free: 130.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1426/2.8, allocations: 102.9 MB / 1.105 GB, free: 20.08 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005373/2.805, allocations: 5.263 MB / 1.11 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006616/2.812, allocations: 3.029 MB / 1.113 GB, free: 11.74 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004924/2.817, allocations: 3.389 MB / 1.117 GB, free: 8.355 MB / 0.5294 GB Notification: Performance of SimCode: time 1.583e-06/2.817, allocations: 0 / 1.117 GB, free: 8.355 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5081/3.325, allocations: 166.7 MB / 1.279 GB, free: 63.98 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.01/30.33, allocations: 0 / 1.279 GB, free: 63.98 MB / 0.5451 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches