Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001337/0.001337, allocations: 116.9 kB / 18.45 MB, free: 4.609 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.001444/0.001444, allocations: 216.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.515/1.515, allocations: 207.6 MB / 231.8 MB, free: 4.086 MB / 174.1 MB " [Timeout remaining time 178] 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.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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 60.52 kB / 342.3 MB, free: 9.988 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1128, allocations: 49.13 MB / 391.4 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02177/0.1346, allocations: 18.65 MB / 410.1 MB, free: 5.973 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01477/0.1494, allocations: 6.182 MB / 416.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004784/0.1541, allocations: 171.1 kB / 416.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01253/0.1667, allocations: 6.34 MB / 422.8 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008592/0.1753, allocations: 2.938 MB / 425.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005602/0.1809, allocations: 2.296 MB / 428 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01386/0.1947, allocations: 8.827 MB / 436.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00954/0.2043, allocations: 6.909 MB / 443.7 MB, free: 4.137 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006836/0.2111, allocations: 3.288 MB / 447 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008148/0.2193, allocations: 4.483 MB / 451.5 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002432/0.2217, allocations: 0.7148 MB / 452.2 MB, free: 11.63 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005112/0.2268, allocations: 1.955 MB / 454.2 MB, free: 9.672 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00559/0.2324, allocations: 3.958 MB / 458.1 MB, free: 5.703 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008628/0.241, allocations: 4.442 MB / 462.6 MB, free: 1.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2755/0.5165, allocations: 13.98 MB / 476.5 MB, free: 20.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.5165, allocations: 0 / 476.5 MB, free: 20.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.5165, allocations: 1.438 kB / 476.5 MB, free: 20.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006673/0.5172, allocations: 0 / 476.5 MB, free: 20.79 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.04407/0.5612, allocations: 9.709 MB / 486.3 MB, free: 17.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.5613, allocations: 9.594 kB / 486.3 MB, free: 17.38 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005545/0.5668, allocations: 1.137 MB / 487.4 MB, free: 17.28 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3276/0.8945, allocations: 23.29 MB / 0.4987 GB, free: 6.562 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02138/0.9159, allocations: 8.64 MB / 0.5072 GB, free: 14.78 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005236/0.9164, allocations: 438.4 kB / 0.5076 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005135/0.9215, allocations: 0.5791 MB / 0.5081 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04779/0.9693, allocations: 16.87 MB / 0.5246 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005989/0.9699, allocations: 87.92 kB / 0.5247 GB, free: 12.23 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003532/0.9734, allocations: 271.8 kB / 0.525 GB, free: 12.01 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005911/0.9793, allocations: 2.651 MB / 0.5276 GB, free: 9.395 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03979/1.019, allocations: 14.4 MB / 0.5416 GB, free: 11.23 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.114/1.133, allocations: 63.93 MB / 0.6041 GB, free: 10.6 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02589/1.159, allocations: 8.344 MB / 0.6122 GB, free: 2.113 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006867/1.166, allocations: 4.565 MB / 0.6167 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03393/1.2, allocations: 18.15 MB / 0.6344 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001095/1.2, allocations: 66 kB / 0.6345 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=281): time 9.277e-06/1.2, allocations: 0 / 0.6345 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of matching and sorting (n=374): time 0.4884/1.688, allocations: 73.3 MB / 0.706 GB, free: 150.9 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001474/1.688, allocations: 376.6 kB / 0.7064 GB, free: 150.5 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009806/1.698, allocations: 6.507 MB / 0.7128 GB, free: 144 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.00129/1.7, allocations: 85.7 kB / 0.7128 GB, free: 143.9 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002603/1.702, allocations: 5.043 MB / 0.7178 GB, free: 138.9 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001991/1.704, allocations: 1.433 MB / 0.7192 GB, free: 137.5 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002762/1.707, allocations: 1.841 MB / 0.721 GB, free: 135.6 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.307e-05/1.707, allocations: 305.1 kB / 0.7212 GB, free: 135.3 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006394/1.713, allocations: 5.655 MB / 0.7268 GB, free: 129.7 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008322/1.722, allocations: 10.62 MB / 0.7371 GB, free: 116.6 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.017/1.739, allocations: 17.36 MB / 0.7541 GB, free: 96.84 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001134/1.739, allocations: 48 kB / 0.7541 GB, free: 96.79 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04097/1.78, allocations: 21.93 MB / 0.7756 GB, free: 74.81 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002086/1.78, allocations: 87.92 kB / 0.7756 GB, free: 74.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002958/1.78, allocations: 172 kB / 0.7758 GB, free: 74.56 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02094/1.801, allocations: 6.843 MB / 0.7825 GB, free: 67.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009278/1.81, allocations: 2.074 MB / 0.7845 GB, free: 65.62 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04253/1.853, allocations: 36.4 MB / 0.8201 GB, free: 28.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01014/1.863, allocations: 0.726 MB / 0.8208 GB, free: 28.08 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002221/1.865, allocations: 0.5038 MB / 0.8213 GB, free: 27.57 MB / 0.5137 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.007794/1.873, allocations: 3.431 MB / 0.8246 GB, free: 24.12 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001761/1.875, allocations: 0.6247 MB / 0.8252 GB, free: 23.5 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2656/2.141, allocations: 16.03 MB / 0.8409 GB, free: 171.9 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001081/2.141, allocations: 46.27 kB / 0.8409 GB, free: 171.9 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.153e-05/2.141, allocations: 18.97 kB / 0.8409 GB, free: 171.9 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.832e-05/2.141, allocations: 16.31 kB / 0.841 GB, free: 171.9 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05771/2.199, allocations: 31.25 MB / 0.8715 GB, free: 160.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-05/2.199, allocations: 4 kB / 0.8715 GB, free: 160.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003451/2.202, allocations: 0.6057 MB / 0.8721 GB, free: 159.6 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0196/2.222, allocations: 6.438 MB / 0.8784 GB, free: 153.4 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001188/2.223, allocations: 61.41 kB / 0.8784 GB, free: 153.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03972/2.263, allocations: 34.65 MB / 0.9123 GB, free: 118.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/2.263, allocations: 7.938 kB / 0.9123 GB, free: 118.5 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03787/2.3, allocations: 23.51 MB / 0.9352 GB, free: 95.32 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004868/2.305, allocations: 1.67 MB / 0.9368 GB, free: 93.99 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002295/2.308, allocations: 62.73 kB / 0.9369 GB, free: 93.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005931/2.314, allocations: 427.3 kB / 0.9373 GB, free: 93.51 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001436/2.315, allocations: 252.1 kB / 0.9376 GB, free: 93.27 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003946/2.315, allocations: 95.94 kB / 0.9376 GB, free: 93.18 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.008272/2.324, allocations: 4.159 MB / 0.9417 GB, free: 89.03 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6.92e-07/2.324, allocations: 0 / 0.9417 GB, free: 89.03 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01407/2.338, allocations: 2.195 MB / 0.9439 GB, free: 86.85 MB / 0.5137 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.0419/2.38, allocations: 24.28 MB / 0.9676 GB, free: 62.65 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.02151/2.401, allocations: 13.65 MB / 0.9809 GB, free: 49.02 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.092e-05/2.401, allocations: 0 / 0.9809 GB, free: 49.02 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0105/2.412, allocations: 6.027 MB / 0.9868 GB, free: 42.96 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007968/2.42, allocations: 0.9467 MB / 0.9877 GB, free: 42.05 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3951/2.815, allocations: 103.2 MB / 1.088 GB, free: 130.9 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008182/2.823, allocations: 5.292 MB / 1.094 GB, free: 125.6 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007171/2.83, allocations: 3.034 MB / 1.097 GB, free: 122.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005858/2.836, allocations: 3.405 MB / 1.1 GB, free: 119.2 MB / 0.5137 GB Notification: Performance of SimCode: time 1.482e-06/2.836, allocations: 0 / 1.1 GB, free: 119.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4724/3.308, allocations: 168.3 MB / 1.264 GB, free: 139.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.05/31.35, allocations: 4.781 kB / 1.264 GB, free: 139.9 MB / 0.5137 GB " [Timeout remaining time 628] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 34.241569445002824]