Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 123 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.522/1.522, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001778/0.001778, allocations: 47.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1166, allocations: 53.32 MB / 426.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2556/0.3721, allocations: 18.11 MB / 444.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01642/0.3886, allocations: 6.064 MB / 450.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005719/0.3943, allocations: 169.4 kB / 450.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0139/0.4082, allocations: 6.326 MB / 457 MB, free: 9.918 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01018/0.4184, allocations: 2.886 MB / 459.9 MB, free: 8.324 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006106/0.4245, allocations: 2.284 MB / 462.1 MB, free: 6.785 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01646/0.4409, allocations: 9.686 MB / 471.8 MB, free: 1.562 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01037/0.4513, allocations: 6.9 MB / 478.7 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007128/0.4584, allocations: 3.253 MB / 482 MB, free: 8.992 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008179/0.4666, allocations: 4.464 MB / 486.5 MB, free: 4.512 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002992/0.4696, allocations: 0.7148 MB / 487.2 MB, free: 3.797 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005635/0.4752, allocations: 1.947 MB / 489.1 MB, free: 1.848 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006488/0.4817, allocations: 3.908 MB / 493 MB, free: 13.93 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01174/0.4935, allocations: 4.403 MB / 497.4 MB, free: 9.504 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02451/0.518, allocations: 13.88 MB / 0.4993 GB, free: 11.58 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.518, allocations: 0 / 0.4993 GB, free: 11.58 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.518, allocations: 0 / 0.4993 GB, free: 11.58 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005147/0.5185, allocations: 0 / 0.4993 GB, free: 11.58 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.0403/0.5588, allocations: 9.652 MB / 0.5087 GB, free: 1.824 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.672e-05/0.5589, allocations: 16.02 kB / 0.5088 GB, free: 1.809 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004501/0.5634, allocations: 1.131 MB / 0.5099 GB, free: 0.668 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.327/0.8903, allocations: 23.28 MB / 0.5326 GB, free: 9.359 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02235/0.9127, allocations: 7.576 MB / 0.54 GB, free: 1.711 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000568/0.9132, allocations: 435.9 kB / 0.5404 GB, free: 1.285 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003219/0.9165, allocations: 0.5855 MB / 0.541 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0433/0.9598, allocations: 16.86 MB / 0.5574 GB, free: 14.89 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004053/0.9602, allocations: 79.41 kB / 0.5575 GB, free: 14.81 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002159/0.9623, allocations: 271.8 kB / 0.5578 GB, free: 14.54 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005333/0.9677, allocations: 2.65 MB / 0.5604 GB, free: 11.89 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03435/1.002, allocations: 14.4 MB / 0.5744 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5739/1.576, allocations: 63.77 MB / 0.6367 GB, free: 122.9 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02464/1.601, allocations: 8.354 MB / 0.6449 GB, free: 122.2 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006006/1.607, allocations: 4.559 MB / 0.6493 GB, free: 121.4 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02874/1.635, allocations: 18.13 MB / 0.667 GB, free: 113.2 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.224e-05/1.635, allocations: 75.47 kB / 0.6671 GB, free: 113.2 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=281): time 5.751e-06/1.635, allocations: 0 / 0.6671 GB, free: 113.2 MB / 0.5138 GB Notification: Performance of matching and sorting (n=374): time 0.2751/1.91, allocations: 73.08 MB / 0.7385 GB, free: 50.73 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/1.911, allocations: 384.1 kB / 0.7388 GB, free: 50.28 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009251/1.92, allocations: 6.424 MB / 0.7451 GB, free: 43.96 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001109/1.921, allocations: 81.7 kB / 0.7452 GB, free: 43.88 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002996/1.924, allocations: 5.019 MB / 0.7501 GB, free: 39.25 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001969/1.926, allocations: 1.433 MB / 0.7515 GB, free: 37.83 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003188/1.929, allocations: 1.842 MB / 0.7533 GB, free: 35.98 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.63e-05/1.929, allocations: 309.1 kB / 0.7536 GB, free: 35.68 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007003/1.936, allocations: 5.659 MB / 0.7591 GB, free: 30.01 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01062/1.947, allocations: 10.61 MB / 0.7695 GB, free: 17.04 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02182/1.969, allocations: 17.36 MB / 0.7864 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002104/1.969, allocations: 48 kB / 0.7865 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.05497/2.024, allocations: 21.92 MB / 0.8079 GB, free: 7.344 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001365/2.024, allocations: 76.19 kB / 0.8079 GB, free: 7.27 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002745/2.024, allocations: 176 kB / 0.8081 GB, free: 7.098 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02391/2.048, allocations: 6.861 MB / 0.8148 GB, free: 228 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008156/2.056, allocations: 2.078 MB / 0.8168 GB, free: 14.14 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3259/2.382, allocations: 36.4 MB / 0.8524 GB, free: 177.2 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01022/2.392, allocations: 0.7197 MB / 0.8531 GB, free: 177.1 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00219/2.395, allocations: 0.5067 MB / 0.8536 GB, free: 177 MB / 0.5607 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.007666/2.402, allocations: 3.423 MB / 0.8569 GB, free: 175.7 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002177/2.404, allocations: 0.6126 MB / 0.8575 GB, free: 175.7 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03381/2.438, allocations: 16.03 MB / 0.8732 GB, free: 170.4 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001156/2.438, allocations: 48.61 kB / 0.8732 GB, free: 170.4 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.389e-05/2.438, allocations: 17.36 kB / 0.8732 GB, free: 170.4 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.792e-05/2.438, allocations: 18.14 kB / 0.8732 GB, free: 170.4 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05558/2.494, allocations: 31.23 MB / 0.9037 GB, free: 150.1 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.002e-05/2.494, allocations: 0 / 0.9037 GB, free: 150.1 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003365/2.497, allocations: 0.6109 MB / 0.9043 GB, free: 149.5 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01907/2.517, allocations: 6.43 MB / 0.9106 GB, free: 143.1 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001103/2.518, allocations: 64 kB / 0.9107 GB, free: 143 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03898/2.557, allocations: 34.64 MB / 0.9445 GB, free: 108.3 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/2.557, allocations: 4 kB / 0.9445 GB, free: 108.3 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03871/2.595, allocations: 23.49 MB / 0.9675 GB, free: 84.96 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002309/2.598, allocations: 0.6583 MB / 0.9681 GB, free: 84.29 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002444/2.6, allocations: 65.25 kB / 0.9682 GB, free: 84.23 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005877/2.606, allocations: 437.8 kB / 0.9686 GB, free: 83.8 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001884/2.608, allocations: 236.7 kB / 0.9688 GB, free: 83.57 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005453/2.608, allocations: 95.98 kB / 0.9689 GB, free: 83.47 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.007145/2.616, allocations: 4.113 MB / 0.9729 GB, free: 79.37 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.9e-07/2.616, allocations: 0 / 0.9729 GB, free: 79.37 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01047/2.626, allocations: 2.18 MB / 0.975 GB, free: 77.21 MB / 0.5607 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.03841/2.664, allocations: 24.29 MB / 0.9988 GB, free: 52.88 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.02091/2.685, allocations: 13.67 MB / 1.012 GB, free: 39.19 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/2.685, allocations: 4 kB / 1.012 GB, free: 39.19 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.01006/2.695, allocations: 6.016 MB / 1.018 GB, free: 33.13 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007458/2.703, allocations: 0.945 MB / 1.019 GB, free: 32.23 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4001/3.103, allocations: 102.7 MB / 1.119 GB, free: 131 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00618/3.109, allocations: 5.263 MB / 1.124 GB, free: 125.7 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006188/3.115, allocations: 3.029 MB / 1.127 GB, free: 122.7 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004463/3.12, allocations: 3.389 MB / 1.131 GB, free: 119.3 MB / 0.5607 GB Notification: Performance of SimCode: time 9.82e-07/3.12, allocations: 0 / 1.131 GB, free: 119.3 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4862/3.606, allocations: 167.8 MB / 1.294 GB, free: 160 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.26/30.86, allocations: 0 / 1.294 GB, free: 160 MB / 0.5607 GB " [Timeout remaining time 629] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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.0009996 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 33.75622411099903]