Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001494/0.001494, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001653/0.001653, allocations: 215.8 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.377/1.377, allocations: 230.6 MB / 258.3 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 47.92 kB / 378.5 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2496, allocations: 53.36 MB / 431.9 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01799/0.2676, allocations: 15.52 MB / 447.4 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01214/0.2798, allocations: 5.831 MB / 453.2 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002828/0.2826, allocations: 171.1 kB / 453.4 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01121/0.2938, allocations: 6.063 MB / 459.4 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006929/0.3008, allocations: 2.899 MB / 462.3 MB, free: 8.051 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004609/0.3054, allocations: 2.253 MB / 464.6 MB, free: 5.793 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01286/0.3182, allocations: 9.715 MB / 474.3 MB, free: 12.06 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008735/0.327, allocations: 6.228 MB / 480.5 MB, free: 5.734 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005421/0.3324, allocations: 3.257 MB / 483.8 MB, free: 2.469 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006669/0.339, allocations: 4.464 MB / 488.3 MB, free: 13.99 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001874/0.3409, allocations: 0.7188 MB / 489 MB, free: 13.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004074/0.345, allocations: 1.81 MB / 490.8 MB, free: 11.46 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004824/0.3498, allocations: 3.908 MB / 494.7 MB, free: 7.543 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005904/0.3557, allocations: 3.416 MB / 498.1 MB, free: 4.109 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01726/0.373, allocations: 13.93 MB / 0.5 GB, free: 6.129 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.373, allocations: 4 kB / 0.5 GB, free: 6.125 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.373, allocations: 0 / 0.5 GB, free: 6.125 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003771/0.3734, allocations: 0 / 0.5 GB, free: 6.125 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.02392/0.3973, allocations: 9.588 MB / 0.5094 GB, free: 12.45 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.3973, allocations: 12.03 kB / 0.5094 GB, free: 12.44 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001922/0.3975, allocations: 179.7 kB / 0.5096 GB, free: 12.27 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001821/0.3993, allocations: 1.135 MB / 0.5107 GB, free: 11.12 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2713/0.6706, allocations: 23.27 MB / 0.5334 GB, free: 3.816 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3598/1.03, allocations: 7.466 MB / 0.5407 GB, free: 94.43 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003062/1.031, allocations: 441.3 kB / 0.5411 GB, free: 94.27 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001815/1.032, allocations: 0.5791 MB / 0.5417 GB, free: 94.12 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02668/1.059, allocations: 17.08 MB / 0.5584 GB, free: 83.18 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002227/1.059, allocations: 76.11 kB / 0.5585 GB, free: 83.12 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007134/1.06, allocations: 267.3 kB / 0.5587 GB, free: 82.9 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003324/1.063, allocations: 2.666 MB / 0.5613 GB, free: 80.25 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02347/1.087, allocations: 14.4 MB / 0.5754 GB, free: 65.86 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06065/1.148, allocations: 60.19 MB / 0.6342 GB, free: 5.039 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02003/1.168, allocations: 7.905 MB / 0.6419 GB, free: 13.14 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005945/1.174, allocations: 4.583 MB / 0.6464 GB, free: 8.559 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02666/1.2, allocations: 16.51 MB / 0.6625 GB, free: 8.156 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.028e-05/1.2, allocations: 64.56 kB / 0.6625 GB, free: 8.086 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 6.382e-06/1.2, allocations: 0 / 0.6625 GB, free: 8.086 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2537/1.454, allocations: 73.16 MB / 0.734 GB, free: 15.27 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002416/1.454, allocations: 384.5 kB / 0.7344 GB, free: 14.82 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01106/1.465, allocations: 6.427 MB / 0.7406 GB, free: 8.391 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008316/1.466, allocations: 85.7 kB / 0.7407 GB, free: 8.301 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00395/1.47, allocations: 5.012 MB / 0.7456 GB, free: 3.246 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001838/1.472, allocations: 1.438 MB / 0.747 GB, free: 1.797 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1836/1.655, allocations: 1.836 MB / 0.7488 GB, free: 193.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.478e-05/1.656, allocations: 302.4 kB / 0.7491 GB, free: 192.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008194/1.664, allocations: 5.665 MB / 0.7546 GB, free: 191.9 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008781/1.672, allocations: 10.82 MB / 0.7652 GB, free: 182.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01521/1.688, allocations: 17.36 MB / 0.7821 GB, free: 171 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001313/1.688, allocations: 49.38 kB / 0.7822 GB, free: 171 MB / 0.545 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03397/1.722, allocations: 21.93 MB / 0.8036 GB, free: 153.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.21e-05/1.722, allocations: 79.78 kB / 0.8037 GB, free: 153.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001117/1.722, allocations: 172 kB / 0.8038 GB, free: 153 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01748/1.739, allocations: 6.856 MB / 0.8105 GB, free: 146.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006276/1.746, allocations: 2.07 MB / 0.8126 GB, free: 144 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03635/1.782, allocations: 35.73 MB / 0.8475 GB, free: 108.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007359/1.789, allocations: 0.7151 MB / 0.8482 GB, free: 107.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001293/1.791, allocations: 0.5116 MB / 0.8487 GB, free: 107 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.004416/1.795, allocations: 3.419 MB / 0.852 GB, free: 103.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001185/1.796, allocations: 0.6173 MB / 0.8526 GB, free: 103.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02514/1.821, allocations: 16.02 MB / 0.8682 GB, free: 87.32 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.896e-05/1.822, allocations: 51.98 kB / 0.8683 GB, free: 87.27 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-05/1.822, allocations: 16 kB / 0.8683 GB, free: 87.26 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.77e-05/1.822, allocations: 15.94 kB / 0.8683 GB, free: 87.24 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04182/1.863, allocations: 29.94 MB / 0.8976 GB, free: 57.03 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.029e-05/1.863, allocations: 4 kB / 0.8976 GB, free: 57.03 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002823/1.866, allocations: 0.6006 MB / 0.8982 GB, free: 56.43 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01605/1.882, allocations: 6.431 MB / 0.9044 GB, free: 49.98 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005688/1.883, allocations: 64 kB / 0.9045 GB, free: 49.92 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0344/1.917, allocations: 33.97 MB / 0.9377 GB, free: 15.61 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/1.917, allocations: 4 kB / 0.9377 GB, free: 15.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2196/2.137, allocations: 23.51 MB / 0.9606 GB, free: 173.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001443/2.138, allocations: 0.5713 MB / 0.9612 GB, free: 173.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001081/2.139, allocations: 67.09 kB / 0.9613 GB, free: 173.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003487/2.143, allocations: 430.3 kB / 0.9617 GB, free: 173 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000959/2.144, allocations: 265.1 kB / 0.9619 GB, free: 173 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003474/2.144, allocations: 97.78 kB / 0.962 GB, free: 173 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004656/2.149, allocations: 4.108 MB / 0.966 GB, free: 171.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/2.149, allocations: 0 / 0.966 GB, free: 171.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00693/2.156, allocations: 2.185 MB / 0.9682 GB, free: 171.4 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.03275/2.189, allocations: 24.28 MB / 0.9919 GB, free: 160.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01623/2.205, allocations: 13.65 MB / 1.005 GB, free: 148.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.385e-05/2.205, allocations: 0 / 1.005 GB, free: 148.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008685/2.214, allocations: 6.035 MB / 1.011 GB, free: 142.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005046/2.219, allocations: 0.9486 MB / 1.012 GB, free: 141.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1254/2.344, allocations: 102.9 MB / 1.112 GB, free: 30.97 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004624/2.349, allocations: 4.786 MB / 1.117 GB, free: 26.14 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005708/2.354, allocations: 3.032 MB / 1.12 GB, free: 23.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004189/2.359, allocations: 3.389 MB / 1.123 GB, free: 19.71 MB / 0.545 GB Notification: Performance of SimCode: time 1.082e-06/2.359, allocations: 0 / 1.123 GB, free: 19.71 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4019/2.76, allocations: 168.9 MB / 1.288 GB, free: 80.11 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.63/29.39, allocations: 2.672 kB / 1.288 GB, free: 80.11 MB / 0.5607 GB " [Timeout remaining time 630] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 34.445680732955225]