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.001626/0.001626, allocations: 123 kB / 17.79 MB, free: 5.266 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.001785/0.001785, allocations: 189.2 kB / 20.73 MB, free: 2.328 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.482/1.482, allocations: 225.6 MB / 249.1 MB, free: 3.602 MB / 190.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.001525/0.001525, allocations: 51.92 kB / 365.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1192, allocations: 52.15 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02218/0.1413, allocations: 18.25 MB / 436 MB, free: 10.29 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01432/0.1557, allocations: 6.08 MB / 442.1 MB, free: 4.188 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004396/0.16, allocations: 179.1 kB / 442.3 MB, free: 4.012 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2916/0.4516, allocations: 6.33 MB / 448.6 MB, free: 7.301 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008892/0.4605, allocations: 2.919 MB / 451.5 MB, free: 7.191 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006112/0.4666, allocations: 2.289 MB / 453.8 MB, free: 7.148 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01634/0.483, allocations: 9.471 MB / 463.3 MB, free: 7.102 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01021/0.4932, allocations: 6.914 MB / 470.2 MB, free: 5.172 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007203/0.5004, allocations: 3.261 MB / 473.5 MB, free: 3.949 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00714/0.5075, allocations: 4.477 MB / 477.9 MB, free: 1.516 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002278/0.5098, allocations: 0.7144 MB / 478.7 MB, free: 1.516 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004828/0.5146, allocations: 1.954 MB / 480.6 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00596/0.5206, allocations: 3.931 MB / 484.5 MB, free: 14.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01145/0.532, allocations: 4.414 MB / 489 MB, free: 10.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02258/0.5546, allocations: 13.93 MB / 0.4911 GB, free: 12.97 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.127e-05/0.5546, allocations: 8 kB / 0.4911 GB, free: 12.96 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5546, allocations: 0 / 0.4911 GB, free: 12.96 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004999/0.5551, allocations: 0 / 0.4911 GB, free: 12.96 MB / 398.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.03114/0.5863, allocations: 9.65 MB / 0.5005 GB, free: 3.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.5863, allocations: 8.031 kB / 0.5005 GB, free: 3.332 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003099/0.5894, allocations: 1.136 MB / 0.5017 GB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3183/0.9077, allocations: 23.28 MB / 0.5244 GB, free: 10.92 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02166/0.9293, allocations: 7.997 MB / 0.5322 GB, free: 2.961 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005448/0.9299, allocations: 436.2 kB / 0.5326 GB, free: 2.578 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002831/0.9327, allocations: 0.578 MB / 0.5332 GB, free: 2.043 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03873/0.9714, allocations: 16.86 MB / 0.5496 GB, free: 376 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002838/0.9717, allocations: 83.41 kB / 0.5497 GB, free: 292 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001173/0.9729, allocations: 268.3 kB / 0.55 GB, free: 68 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004921/0.9778, allocations: 2.651 MB / 0.5526 GB, free: 13.43 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03399/1.012, allocations: 14.4 MB / 0.5666 GB, free: 15.02 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4966/1.508, allocations: 63.8 MB / 0.6289 GB, free: 147.8 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02439/1.533, allocations: 8.341 MB / 0.6371 GB, free: 147.1 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005919/1.539, allocations: 4.557 MB / 0.6415 GB, free: 147.1 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02621/1.565, allocations: 18.13 MB / 0.6592 GB, free: 140.8 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.744e-05/1.565, allocations: 64.31 kB / 0.6593 GB, free: 140.7 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=281): time 4.939e-06/1.565, allocations: 0 / 0.6593 GB, free: 140.7 MB / 0.5138 GB Notification: Performance of matching and sorting (n=374): time 0.2454/1.81, allocations: 73.08 MB / 0.7307 GB, free: 84.28 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/1.81, allocations: 376.1 kB / 0.731 GB, free: 83.84 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008689/1.819, allocations: 6.443 MB / 0.7373 GB, free: 77.5 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001046/1.82, allocations: 81.7 kB / 0.7374 GB, free: 77.41 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002586/1.823, allocations: 5.021 MB / 0.7423 GB, free: 72.8 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001773/1.825, allocations: 1.438 MB / 0.7437 GB, free: 71.38 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002804/1.827, allocations: 1.845 MB / 0.7455 GB, free: 69.52 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.876e-05/1.827, allocations: 301.1 kB / 0.7458 GB, free: 69.22 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006539/1.834, allocations: 5.663 MB / 0.7513 GB, free: 63.55 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009592/1.844, allocations: 10.61 MB / 0.7617 GB, free: 50.59 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01742/1.861, allocations: 17.36 MB / 0.7786 GB, free: 30.93 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001537/1.861, allocations: 55.56 kB / 0.7787 GB, free: 30.88 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04299/1.904, allocations: 21.91 MB / 0.8001 GB, free: 8.914 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.557e-05/1.904, allocations: 80 kB / 0.8002 GB, free: 8.836 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001523/1.904, allocations: 168 kB / 0.8003 GB, free: 8.672 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02032/1.925, allocations: 6.869 MB / 0.807 GB, free: 1.789 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007319/1.932, allocations: 2.07 MB / 0.8091 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3/2.232, allocations: 36.41 MB / 0.8446 GB, free: 165.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01004/2.242, allocations: 0.7131 MB / 0.8453 GB, free: 165.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002306/2.244, allocations: 0.5085 MB / 0.8458 GB, free: 165.3 MB / 0.545 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.007783/2.252, allocations: 3.425 MB / 0.8492 GB, free: 164 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001766/2.254, allocations: 0.6183 MB / 0.8498 GB, free: 164 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03161/2.285, allocations: 16.02 MB / 0.8654 GB, free: 158.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001018/2.286, allocations: 52.2 kB / 0.8655 GB, free: 158.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.252e-05/2.286, allocations: 18.16 kB / 0.8655 GB, free: 158.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.977e-05/2.286, allocations: 18 kB / 0.8655 GB, free: 158.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05224/2.338, allocations: 31.23 MB / 0.896 GB, free: 142 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-05/2.338, allocations: 4.609 kB / 0.896 GB, free: 142 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003299/2.341, allocations: 0.6045 MB / 0.8966 GB, free: 141.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01868/2.36, allocations: 6.435 MB / 0.9029 GB, free: 135.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000873/2.361, allocations: 60 kB / 0.9029 GB, free: 135 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03745/2.398, allocations: 34.63 MB / 0.9367 GB, free: 100.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.88e-06/2.398, allocations: 1.969 kB / 0.9367 GB, free: 100.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03529/2.434, allocations: 23.51 MB / 0.9597 GB, free: 77.07 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001887/2.436, allocations: 0.6556 MB / 0.9603 GB, free: 76.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001313/2.437, allocations: 71.92 kB / 0.9604 GB, free: 76.33 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004197/2.441, allocations: 429 kB / 0.9608 GB, free: 75.91 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001185/2.442, allocations: 238.7 kB / 0.961 GB, free: 75.68 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003453/2.443, allocations: 99.7 kB / 0.9611 GB, free: 75.58 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005463/2.448, allocations: 4.114 MB / 0.9652 GB, free: 71.48 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/2.448, allocations: 0 / 0.9652 GB, free: 71.48 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01016/2.458, allocations: 2.204 MB / 0.9673 GB, free: 69.29 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.03708/2.495, allocations: 24.28 MB / 0.991 GB, free: 44.96 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01857/2.514, allocations: 13.66 MB / 1.004 GB, free: 31.32 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/2.514, allocations: 0 / 1.004 GB, free: 31.32 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008526/2.522, allocations: 6.027 MB / 1.01 GB, free: 25.25 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005128/2.527, allocations: 0.9404 MB / 1.011 GB, free: 24.36 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3852/2.913, allocations: 102.8 MB / 1.112 GB, free: 119.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007109/2.92, allocations: 5.259 MB / 1.117 GB, free: 113.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006364/2.926, allocations: 3.035 MB / 1.12 GB, free: 110.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004743/2.931, allocations: 3.393 MB / 1.123 GB, free: 107.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.102e-06/2.931, allocations: 0 / 1.123 GB, free: 107.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.498/3.429, allocations: 167.7 MB / 1.287 GB, free: 145.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.77/31.2, allocations: 6.875 kB / 1.287 GB, free: 145.1 MB / 0.545 GB " [Timeout remaining time 629] (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: 34.04688519611955]