Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002097/0.002097, allocations: 107.5 kB / 20.43 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001992/0.001992, allocations: 187.5 kB / 23.7 MB, free: 4.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.511/1.511, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] 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.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 51.89 kB / 370.4 MB, free: 9.781 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2921, allocations: 52.19 MB / 422.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02878/0.3209, allocations: 15.72 MB / 438.3 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01752/0.3384, allocations: 5.851 MB / 444.1 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005237/0.3437, allocations: 171.1 kB / 444.3 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01748/0.3612, allocations: 6.091 MB / 450.4 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01067/0.3718, allocations: 2.946 MB / 453.4 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007023/0.3788, allocations: 2.253 MB / 455.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0194/0.3982, allocations: 9.512 MB / 465.1 MB, free: 3.746 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01191/0.4102, allocations: 6.205 MB / 471.3 MB, free: 13.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007926/0.4181, allocations: 3.264 MB / 474.6 MB, free: 10.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009994/0.4281, allocations: 4.163 MB / 478.7 MB, free: 5.992 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00345/0.4315, allocations: 0.7188 MB / 479.5 MB, free: 5.273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007248/0.4388, allocations: 1.81 MB / 481.3 MB, free: 3.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007658/0.4464, allocations: 3.916 MB / 485.2 MB, free: 15.54 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008542/0.455, allocations: 3.424 MB / 488.6 MB, free: 12.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02545/0.4804, allocations: 13.99 MB / 0.4908 GB, free: 14.05 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.4804, allocations: 0 / 0.4908 GB, free: 14.05 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4804, allocations: 0 / 0.4908 GB, free: 14.05 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003724/0.4808, allocations: 4 kB / 0.4908 GB, free: 14.04 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.04289/0.5237, allocations: 9.58 MB / 0.5002 GB, free: 4.383 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.304e-05/0.5238, allocations: 8.031 kB / 0.5002 GB, free: 4.375 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004801/0.5286, allocations: 1.139 MB / 0.5013 GB, free: 3.227 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.373/0.9016, allocations: 23.28 MB / 0.524 GB, free: 11.92 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02269/0.9243, allocations: 7.897 MB / 0.5318 GB, free: 3.938 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000543/0.9248, allocations: 431.7 kB / 0.5322 GB, free: 3.516 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003043/0.9279, allocations: 0.5856 MB / 0.5327 GB, free: 2.93 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4347/1.363, allocations: 17.08 MB / 0.5494 GB, free: 96.64 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000225/1.363, allocations: 80.64 kB / 0.5495 GB, free: 96.61 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007515/1.364, allocations: 271.8 kB / 0.5498 GB, free: 96.46 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003413/1.367, allocations: 2.652 MB / 0.5523 GB, free: 94.41 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02419/1.391, allocations: 14.36 MB / 0.5664 GB, free: 80.06 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06665/1.458, allocations: 60.22 MB / 0.6252 GB, free: 19.43 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01983/1.478, allocations: 7.892 MB / 0.6329 GB, free: 11.55 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004617/1.482, allocations: 4.583 MB / 0.6374 GB, free: 6.965 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03093/1.513, allocations: 16.52 MB / 0.6535 GB, free: 6.555 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.001e-05/1.513, allocations: 64.56 kB / 0.6535 GB, free: 6.484 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 9.087e-06/1.513, allocations: 0 / 0.6535 GB, free: 6.484 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2783/1.792, allocations: 73.16 MB / 0.725 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002596/1.792, allocations: 380.6 kB / 0.7254 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01428/1.806, allocations: 6.717 MB / 0.7319 GB, free: 6.773 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009895/1.807, allocations: 81.7 kB / 0.732 GB, free: 6.688 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0052/1.812, allocations: 5.02 MB / 0.7369 GB, free: 1.625 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00248/1.815, allocations: 1.434 MB / 0.7383 GB, free: 184 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.232/2.047, allocations: 1.838 MB / 0.7401 GB, free: 184 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.159e-05/2.047, allocations: 302.7 kB / 0.7404 GB, free: 183.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007685/2.055, allocations: 5.663 MB / 0.7459 GB, free: 182.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009192/2.064, allocations: 10.82 MB / 0.7565 GB, free: 173.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01568/2.079, allocations: 17.36 MB / 0.7734 GB, free: 160.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001521/2.08, allocations: 55.75 kB / 0.7735 GB, free: 160.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04096/2.121, allocations: 21.91 MB / 0.7949 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001162/2.121, allocations: 80.94 kB / 0.795 GB, free: 142.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002007/2.121, allocations: 172 kB / 0.7951 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01905/2.14, allocations: 6.855 MB / 0.8018 GB, free: 135.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006862/2.147, allocations: 2.074 MB / 0.8038 GB, free: 133.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04066/2.187, allocations: 35.74 MB / 0.8387 GB, free: 97.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008732/2.196, allocations: 0.7152 MB / 0.8394 GB, free: 96.89 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001756/2.198, allocations: 0.5094 MB / 0.8399 GB, free: 96.39 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.005984/2.204, allocations: 3.426 MB / 0.8433 GB, free: 93.06 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001647/2.206, allocations: 0.6141 MB / 0.8439 GB, free: 92.79 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02993/2.235, allocations: 16.03 MB / 0.8595 GB, free: 76.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.048e-05/2.236, allocations: 55.73 kB / 0.8596 GB, free: 76.65 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.006e-05/2.236, allocations: 19.98 kB / 0.8596 GB, free: 76.63 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.606e-05/2.236, allocations: 15.94 kB / 0.8596 GB, free: 76.61 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05183/2.287, allocations: 29.91 MB / 0.8888 GB, free: 46.44 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.562e-05/2.288, allocations: 4 kB / 0.8888 GB, free: 46.43 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003238/2.291, allocations: 0.5967 MB / 0.8894 GB, free: 45.84 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01843/2.309, allocations: 6.44 MB / 0.8957 GB, free: 39.38 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009566/2.31, allocations: 64 kB / 0.8958 GB, free: 39.31 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03887/2.349, allocations: 33.97 MB / 0.9289 GB, free: 5.086 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/2.349, allocations: 7.938 kB / 0.929 GB, free: 5.078 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2912/2.64, allocations: 23.5 MB / 0.9519 GB, free: 179.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001742/2.642, allocations: 0.5817 MB / 0.9525 GB, free: 179.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001415/2.643, allocations: 68.62 kB / 0.9525 GB, free: 179.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004232/2.648, allocations: 426.4 kB / 0.9529 GB, free: 179.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001129/2.649, allocations: 267.5 kB / 0.9532 GB, free: 179.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003511/2.649, allocations: 94.88 kB / 0.9533 GB, free: 179.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006054/2.655, allocations: 4.109 MB / 0.9573 GB, free: 177.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.91e-07/2.655, allocations: 3.375 kB / 0.9573 GB, free: 177.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008724/2.664, allocations: 2.196 MB / 0.9594 GB, free: 177.6 MB / 0.545 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.0355/2.699, allocations: 24.27 MB / 0.9831 GB, free: 162.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01769/2.717, allocations: 13.67 MB / 0.9965 GB, free: 149.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/2.717, allocations: 4 kB / 0.9965 GB, free: 149.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008732/2.726, allocations: 6.02 MB / 1.002 GB, free: 143.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005884/2.732, allocations: 0.947 MB / 1.003 GB, free: 142.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1446/2.876, allocations: 102.9 MB / 1.104 GB, free: 32.45 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006065/2.882, allocations: 4.791 MB / 1.108 GB, free: 27.61 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006031/2.888, allocations: 3.029 MB / 1.111 GB, free: 24.57 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004382/2.893, allocations: 3.393 MB / 1.115 GB, free: 21.18 MB / 0.545 GB Notification: Performance of SimCode: time 1.293e-06/2.893, allocations: 0 / 1.115 GB, free: 21.18 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4837/3.377, allocations: 169.5 MB / 1.28 GB, free: 82.94 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.05/27.42, allocations: 3.266 kB / 1.28 GB, free: 82.94 MB / 0.5607 GB " [Timeout remaining time 632] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 30.338119704741985]