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.0008505/0.0008505, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007742/0.0007742, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8634/0.8634, allocations: 173.4 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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 2.264e-06/2.264e-06, allocations: 3.984 kB / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.125e-05/1.352e-05, allocations: 2.281 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01108/0.01109, allocations: 15.72 MB / 334.2 MB, free: 6.562 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009197/0.02029, allocations: 5.865 MB / 340 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001674/0.02196, allocations: 171.1 kB / 340.2 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005469/0.02743, allocations: 6.425 MB / 346.6 MB, free: 10.07 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004105/0.03154, allocations: 3.029 MB / 349.6 MB, free: 7.023 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002902/0.03444, allocations: 2.467 MB / 352.1 MB, free: 4.551 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007858/0.0423, allocations: 10.79 MB / 362.9 MB, free: 9.75 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006094/0.04839, allocations: 7.242 MB / 370.1 MB, free: 2.406 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007435/0.05583, allocations: 4.951 MB / 375.1 MB, free: 13.45 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00444/0.06027, allocations: 4.649 MB / 379.7 MB, free: 8.785 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008095/0.06108, allocations: 0.7383 MB / 380.5 MB, free: 8.047 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002057/0.06313, allocations: 1.888 MB / 382.4 MB, free: 6.156 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002179/0.06531, allocations: 4.126 MB / 386.5 MB, free: 2.02 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001996/0.06731, allocations: 2.836 MB / 389.3 MB, free: 15.18 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008836/0.07614, allocations: 14.22 MB / 403.5 MB, free: 0.9141 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.07615, allocations: 0 / 403.5 MB, free: 0.9141 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.07615, allocations: 0 / 403.5 MB, free: 0.9141 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001505/0.0763, allocations: 0 / 403.5 MB, free: 0.9141 MB / 362.7 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.01337/0.08968, allocations: 9.767 MB / 413.3 MB, free: 7.062 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.734e-05/0.08973, allocations: 12.86 kB / 413.3 MB, free: 7.051 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001093/0.09083, allocations: 1.135 MB / 414.5 MB, free: 5.906 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1387/0.2295, allocations: 24.09 MB / 438.5 MB, free: 13.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01331/0.2428, allocations: 6.808 MB / 445.4 MB, free: 6.895 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003256/0.2431, allocations: 439.6 kB / 445.8 MB, free: 6.465 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002319/0.2455, allocations: 0.586 MB / 446.4 MB, free: 5.879 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3199/0.5654, allocations: 17.1 MB / 463.5 MB, free: 108.8 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000182/0.5656, allocations: 83.55 kB / 463.6 MB, free: 108.7 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004916/0.566, allocations: 268.4 kB / 463.8 MB, free: 108.6 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002196/0.5682, allocations: 2.659 MB / 466.5 MB, free: 107.6 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01857/0.5868, allocations: 14.38 MB / 480.8 MB, free: 93.31 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05447/0.6413, allocations: 60.98 MB / 0.5291 GB, free: 31.95 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01218/0.6535, allocations: 8.137 MB / 0.5371 GB, free: 23.82 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003428/0.6569, allocations: 4.588 MB / 0.5416 GB, free: 19.23 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01592/0.6728, allocations: 17.07 MB / 0.5582 GB, free: 2.359 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.6728, allocations: 68.5 kB / 0.5583 GB, free: 2.285 MB / 410.8 MB Notification: Performance of pre-optimization done (n=281): time 6.643e-06/0.6729, allocations: 3.984 kB / 0.5583 GB, free: 2.281 MB / 410.8 MB Notification: Performance of matching and sorting (n=374): time 0.3127/0.9856, allocations: 75.56 MB / 0.6321 GB, free: 164.3 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.9857, allocations: 371.8 kB / 0.6324 GB, free: 163.9 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008268/0.994, allocations: 7.435 MB / 0.6397 GB, free: 161.6 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001044/0.995, allocations: 84.67 kB / 0.6398 GB, free: 161.6 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001864/0.9969, allocations: 4.989 MB / 0.6447 GB, free: 158.9 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001458/0.9983, allocations: 1.41 MB / 0.646 GB, free: 157.8 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001865/1, allocations: 1.821 MB / 0.6478 GB, free: 157 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 3.664e-05/1, allocations: 305.1 kB / 0.6481 GB, free: 156.7 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004514/1.005, allocations: 5.664 MB / 0.6536 GB, free: 154.5 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005705/1.01, allocations: 10.81 MB / 0.6642 GB, free: 141.8 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01141/1.022, allocations: 17.36 MB / 0.6811 GB, free: 122.2 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001029/1.022, allocations: 48 kB / 0.6812 GB, free: 122.2 MB / 474.8 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.02471/1.047, allocations: 21.92 MB / 0.7026 GB, free: 100.2 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.812e-05/1.047, allocations: 83.75 kB / 0.7027 GB, free: 100.2 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000159/1.047, allocations: 171.9 kB / 0.7028 GB, free: 99.99 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01054/1.057, allocations: 6.854 MB / 0.7095 GB, free: 93.12 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004142/1.062, allocations: 2.074 MB / 0.7116 GB, free: 91.04 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02733/1.089, allocations: 35.93 MB / 0.7466 GB, free: 54.79 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00651/1.095, allocations: 0.8308 MB / 0.7475 GB, free: 53.96 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001176/1.097, allocations: 0.5155 MB / 0.748 GB, free: 53.45 MB / 474.8 MB 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.004323/1.101, allocations: 3.421 MB / 0.7513 GB, free: 50.02 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001244/1.102, allocations: 0.617 MB / 0.7519 GB, free: 49.39 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01721/1.119, allocations: 16.03 MB / 0.7675 GB, free: 33.3 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.849e-05/1.119, allocations: 47.94 kB / 0.7676 GB, free: 33.25 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.047e-05/1.119, allocations: 16 kB / 0.7676 GB, free: 33.24 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.612e-05/1.12, allocations: 19.88 kB / 0.7676 GB, free: 33.22 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2118/1.331, allocations: 30.19 MB / 0.7971 GB, free: 147.7 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.491e-05/1.331, allocations: 0 / 0.7971 GB, free: 147.7 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002245/1.334, allocations: 0.6057 MB / 0.7977 GB, free: 147.6 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01129/1.345, allocations: 6.427 MB / 0.804 GB, free: 147.6 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009318/1.346, allocations: 67.41 kB / 0.804 GB, free: 147.6 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02694/1.373, allocations: 34.16 MB / 0.8374 GB, free: 127.5 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/1.373, allocations: 7.938 kB / 0.8374 GB, free: 127.5 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02454/1.397, allocations: 23.51 MB / 0.8604 GB, free: 104.2 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002705/1.4, allocations: 0.6891 MB / 0.861 GB, free: 103.9 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001004/1.401, allocations: 60 kB / 0.8611 GB, free: 103.8 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002434/1.403, allocations: 0.5226 MB / 0.8616 GB, free: 103.3 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007908/1.404, allocations: 266.5 kB / 0.8619 GB, free: 103.1 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002145/1.404, allocations: 91.98 kB / 0.8619 GB, free: 103 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.004175/1.409, allocations: 4.669 MB / 0.8665 GB, free: 98.31 MB / 474.8 MB Notification: Performance of sort global known variables: time 2.31e-07/1.409, allocations: 3.969 kB / 0.8665 GB, free: 98.31 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.00812/1.417, allocations: 2.542 MB / 0.869 GB, free: 95.79 MB / 474.8 MB 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.02251/1.439, allocations: 24.31 MB / 0.8927 GB, free: 71.56 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.0143/1.454, allocations: 13.64 MB / 0.9061 GB, free: 57.95 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/1.454, allocations: 5.688 kB / 0.9061 GB, free: 57.95 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006402/1.46, allocations: 6.027 MB / 0.9119 GB, free: 51.88 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004424/1.464, allocations: 0.95 MB / 0.9129 GB, free: 50.95 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2789/1.743, allocations: 105.3 MB / 1.016 GB, free: 131 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004618/1.748, allocations: 4.778 MB / 1.02 GB, free: 126.2 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.004739/1.753, allocations: 3.056 MB / 1.023 GB, free: 123.3 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00396/1.757, allocations: 3.421 MB / 1.027 GB, free: 119.9 MB / 490.8 MB Notification: Performance of SimCode: time 1.713e-06/1.757, allocations: 0 / 1.027 GB, free: 119.9 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3203/2.077, allocations: 173.8 MB / 1.196 GB, free: 120.5 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.43/17.51, allocations: 14.08 kB / 1.196 GB, free: 120.5 MB / 490.8 MB " [Timeout remaining time 642] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins/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: 19.405951087363064]