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.0008827/0.0008827, 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.0008019/0.0008019, allocations: 149.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.8466/0.8466, allocations: 173.4 MB / 200.4 MB, free: 9.438 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 1.312e-06/1.312e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.108e-05/1.239e-05, allocations: 2.281 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01178/0.01179, allocations: 15.73 MB / 334.2 MB, free: 6.551 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009299/0.02109, allocations: 5.861 MB / 340 MB, free: 0.668 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001833/0.02293, allocations: 175.1 kB / 340.2 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005562/0.02849, allocations: 6.421 MB / 346.6 MB, free: 10.05 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004429/0.03292, allocations: 3.021 MB / 349.6 MB, free: 7.02 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002835/0.03575, allocations: 2.467 MB / 352.1 MB, free: 4.547 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.009839/0.04559, allocations: 10.8 MB / 362.9 MB, free: 9.734 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006941/0.05253, allocations: 7.234 MB / 370.1 MB, free: 2.398 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006109/0.05864, allocations: 4.951 MB / 375.1 MB, free: 13.44 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004926/0.06357, allocations: 4.657 MB / 379.7 MB, free: 8.77 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001044/0.06461, allocations: 0.7383 MB / 380.5 MB, free: 8.031 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002426/0.06704, allocations: 1.884 MB / 382.4 MB, free: 6.145 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002678/0.06971, allocations: 4.123 MB / 386.5 MB, free: 2.012 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002329/0.07204, allocations: 2.844 MB / 389.3 MB, free: 15.16 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01074/0.08278, allocations: 14.22 MB / 403.5 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.08278, allocations: 0 / 403.5 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.08279, allocations: 0 / 403.5 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002472/0.08303, allocations: 0 / 403.5 MB, free: 0.9023 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.01622/0.09926, allocations: 9.764 MB / 413.3 MB, free: 7.051 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.0993, allocations: 8.922 kB / 413.3 MB, free: 7.043 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001115/0.1004, allocations: 1.135 MB / 414.5 MB, free: 5.898 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1435/0.244, allocations: 24.09 MB / 438.5 MB, free: 13.77 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0118/0.2558, allocations: 6.804 MB / 445.4 MB, free: 6.887 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002008/0.256, allocations: 431.7 kB / 445.8 MB, free: 6.465 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009176/0.2569, allocations: 0.5899 MB / 446.4 MB, free: 5.875 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2936/0.5505, allocations: 17.1 MB / 463.5 MB, free: 108.8 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001432/0.5506, allocations: 84.08 kB / 463.6 MB, free: 108.8 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004554/0.5511, allocations: 271.1 kB / 463.8 MB, free: 108.6 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002255/0.5534, allocations: 2.654 MB / 466.5 MB, free: 107.7 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01407/0.5674, allocations: 14.38 MB / 480.8 MB, free: 93.3 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03682/0.6042, allocations: 60.98 MB / 0.5291 GB, free: 31.93 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01065/0.6149, allocations: 8.135 MB / 0.5371 GB, free: 23.81 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00268/0.6176, allocations: 4.589 MB / 0.5416 GB, free: 19.21 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01267/0.6302, allocations: 17.07 MB / 0.5582 GB, free: 2.344 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.6303, allocations: 76.41 kB / 0.5583 GB, free: 2.262 MB / 410.8 MB Notification: Performance of pre-optimization done (n=281): time 4.167e-06/0.6303, allocations: 0 / 0.5583 GB, free: 2.262 MB / 410.8 MB Notification: Performance of matching and sorting (n=374): time 0.2974/0.9277, allocations: 75.55 MB / 0.6321 GB, free: 164.3 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.657e-05/0.9278, allocations: 379.2 kB / 0.6324 GB, free: 163.9 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006394/0.9342, allocations: 7.434 MB / 0.6397 GB, free: 161.6 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000602/0.9348, allocations: 81.45 kB / 0.6398 GB, free: 161.5 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001605/0.9364, allocations: 4.99 MB / 0.6447 GB, free: 158.9 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008981/0.9373, allocations: 1.408 MB / 0.646 GB, free: 157.8 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0016/0.9389, allocations: 1.822 MB / 0.6478 GB, free: 156.9 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 3.267e-05/0.9389, allocations: 305.1 kB / 0.6481 GB, free: 156.6 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004089/0.943, allocations: 5.665 MB / 0.6536 GB, free: 154.4 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005667/0.9487, allocations: 10.82 MB / 0.6642 GB, free: 141.8 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01094/0.9596, allocations: 17.36 MB / 0.6811 GB, free: 122.2 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-05/0.9597, allocations: 48 kB / 0.6812 GB, free: 122.1 MB / 474.8 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.02335/0.983, allocations: 21.91 MB / 0.7026 GB, free: 100.2 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.459e-05/0.9831, allocations: 84.92 kB / 0.7027 GB, free: 100.1 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001087/0.9832, allocations: 171.9 kB / 0.7028 GB, free: 99.94 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01058/0.9938, allocations: 6.854 MB / 0.7095 GB, free: 93.07 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004625/0.9984, allocations: 2.07 MB / 0.7115 GB, free: 91 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02584/1.024, allocations: 35.93 MB / 0.7466 GB, free: 54.74 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006415/1.031, allocations: 0.8346 MB / 0.7475 GB, free: 53.91 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007678/1.031, allocations: 0.5078 MB / 0.748 GB, free: 53.4 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.004106/1.036, allocations: 3.423 MB / 0.7513 GB, free: 49.96 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001148/1.037, allocations: 0.6131 MB / 0.7519 GB, free: 49.35 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01612/1.053, allocations: 16.02 MB / 0.7675 GB, free: 33.26 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.861e-05/1.053, allocations: 63.83 kB / 0.7676 GB, free: 33.2 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.512e-05/1.053, allocations: 16 kB / 0.7676 GB, free: 33.19 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.506e-05/1.053, allocations: 19.88 kB / 0.7676 GB, free: 33.17 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2121/1.265, allocations: 30.18 MB / 0.7971 GB, free: 147.6 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.507e-05/1.265, allocations: 3.938 kB / 0.7971 GB, free: 147.6 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001807/1.267, allocations: 0.6061 MB / 0.7977 GB, free: 147.6 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009921/1.277, allocations: 6.425 MB / 0.804 GB, free: 147.6 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004047/1.277, allocations: 63.31 kB / 0.804 GB, free: 147.6 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02539/1.303, allocations: 34.15 MB / 0.8374 GB, free: 127.4 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/1.303, allocations: 9.938 kB / 0.8374 GB, free: 127.4 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02122/1.324, allocations: 23.5 MB / 0.8603 GB, free: 104.2 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002236/1.326, allocations: 0.6891 MB / 0.861 GB, free: 103.9 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000702/1.327, allocations: 67.98 kB / 0.8611 GB, free: 103.8 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002428/1.329, allocations: 0.522 MB / 0.8616 GB, free: 103.3 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007583/1.33, allocations: 270.5 kB / 0.8619 GB, free: 103 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002179/1.33, allocations: 93.95 kB / 0.8619 GB, free: 102.9 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.003958/1.334, allocations: 4.669 MB / 0.8665 GB, free: 98.25 MB / 474.8 MB Notification: Performance of sort global known variables: time 2.01e-07/1.334, allocations: 3.625 kB / 0.8665 GB, free: 98.25 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.005091/1.339, allocations: 2.539 MB / 0.869 GB, free: 95.73 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.02042/1.36, allocations: 24.3 MB / 0.8927 GB, free: 71.51 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01113/1.371, allocations: 13.65 MB / 0.906 GB, free: 57.89 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 6.493e-06/1.371, allocations: 4 kB / 0.9061 GB, free: 57.89 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005205/1.376, allocations: 6.029 MB / 0.9119 GB, free: 51.82 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003439/1.379, allocations: 0.9476 MB / 0.9129 GB, free: 50.9 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.248/1.627, 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.003575/1.631, allocations: 4.788 MB / 1.02 GB, free: 126.3 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.004206/1.635, allocations: 3.052 MB / 1.023 GB, free: 123.4 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002686/1.638, allocations: 3.424 MB / 1.027 GB, free: 119.9 MB / 490.8 MB Notification: Performance of SimCode: time 1.412e-06/1.638, allocations: 0 / 1.027 GB, free: 119.9 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3229/1.961, allocations: 173.8 MB / 1.196 GB, free: 120.5 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.37/17.33, allocations: 6.938 kB / 1.196 GB, free: 120.5 MB / 490.8 MB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 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.mat","/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 19.904496429488063]