Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.001334/0.001334, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001445/0.001445, allocations: 214.8 kB / 24.47 MB, free: 3.777 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.352/1.352, allocations: 207.7 MB / 235.3 MB, free: 9.805 MB / 190.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.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",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.0017/0.0017, allocations: 57.8 kB / 347.2 MB, free: 9.879 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2691, allocations: 49.16 MB / 396.4 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01393/0.2831, allocations: 13.87 MB / 410.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01248/0.2955, allocations: 4.967 MB / 415.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003675/0.2992, allocations: 135.8 kB / 415.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009121/0.3083, allocations: 4.328 MB / 419.7 MB, free: 9.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007886/0.3162, allocations: 2.646 MB / 422.3 MB, free: 7.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003014/0.3192, allocations: 1.165 MB / 423.5 MB, free: 6.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01093/0.3302, allocations: 7.493 MB / 431 MB, free: 456 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00694/0.3371, allocations: 4.3 MB / 435.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004857/0.342, allocations: 2.543 MB / 437.8 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006371/0.3483, allocations: 3.426 MB / 441.2 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001979/0.3503, allocations: 0.5078 MB / 441.7 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004025/0.3543, allocations: 1.397 MB / 443.1 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004868/0.3592, allocations: 3.089 MB / 446.2 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00583/0.365, allocations: 2.626 MB / 448.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01442/0.3795, allocations: 10.7 MB / 459.5 MB, free: 3.684 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.3795, allocations: 0 / 459.5 MB, free: 3.684 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3795, allocations: 3.938 kB / 459.6 MB, free: 3.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003844/0.3799, allocations: 4 kB / 459.6 MB, free: 3.676 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02228/0.4021, allocations: 8.043 MB / 467.6 MB, free: 11.55 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.4022, allocations: 11.98 kB / 467.6 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002265/0.4045, allocations: 1.082 MB / 468.7 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05511/0.4596, allocations: 8.449 MB / 477.1 MB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01456/0.4741, allocations: 6.284 MB / 483.4 MB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003015/0.4744, allocations: 344.1 kB / 483.8 MB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001182/0.4756, allocations: 467.7 kB / 484.2 MB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0272/0.5028, allocations: 14.54 MB / 498.8 MB, free: 11.32 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000237/0.503, allocations: 71.47 kB / 498.8 MB, free: 11.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006374/0.5037, allocations: 215.8 kB / 499 MB, free: 11.04 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005775/0.5094, allocations: 2.832 MB / 0.4901 GB, free: 8.207 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02729/0.5367, allocations: 12.96 MB / 0.5028 GB, free: 11.22 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08581/0.6225, allocations: 55.06 MB / 0.5565 GB, free: 2.836 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2263/0.8488, allocations: 6.869 MB / 0.5632 GB, free: 142.8 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006664/0.8555, allocations: 4.551 MB / 0.5677 GB, free: 141.2 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02157/0.877, allocations: 11.45 MB / 0.5789 GB, free: 136.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.743e-05/0.8771, allocations: 74.73 kB / 0.5789 GB, free: 136.6 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 8.376e-06/0.8771, allocations: 0 / 0.5789 GB, free: 136.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 1.993/2.87, allocations: 411.3 MB / 0.9806 GB, free: 141.2 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.408e-05/2.87, allocations: 266.3 kB / 0.9809 GB, free: 140.9 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006118/2.876, allocations: 5.793 MB / 0.9865 GB, free: 137.1 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001515/2.877, allocations: 113.7 kB / 0.9866 GB, free: 136.9 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001837/2.879, allocations: 4.166 MB / 0.9907 GB, free: 133.9 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002185/2.881, allocations: 2.097 MB / 0.9928 GB, free: 131.8 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003446/2.885, allocations: 2.087 MB / 0.9948 GB, free: 129.7 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.494e-05/2.885, allocations: 304.8 kB / 0.9951 GB, free: 129.4 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01151/2.896, allocations: 10.88 MB / 1.006 GB, free: 118.5 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01358/2.91, allocations: 15.06 MB / 1.02 GB, free: 101.5 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02703/2.937, allocations: 27.12 MB / 1.047 GB, free: 72.57 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001307/2.937, allocations: 40 kB / 1.047 GB, free: 72.53 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.4938/3.431, allocations: 140.1 MB / 1.184 GB, free: 117.9 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.914e-05/3.431, allocations: 64 kB / 1.184 GB, free: 117.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001324/3.431, allocations: 136 kB / 1.184 GB, free: 117.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07349/3.505, allocations: 34.56 MB / 1.218 GB, free: 83.69 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004323/3.509, allocations: 1.479 MB / 1.219 GB, free: 82.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4224/3.931, allocations: 200.7 MB / 1.415 GB, free: 89.69 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01207/3.943, allocations: 1.704 MB / 1.417 GB, free: 88.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001593/3.945, allocations: 0.5261 MB / 1.417 GB, free: 88.23 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (783): * Single equations (assignments): 776 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(21,163,34.9%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.004726/3.95, allocations: 3.093 MB / 1.42 GB, free: 85.74 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001594/3.951, allocations: 0.6142 MB / 1.421 GB, free: 85.46 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5011/4.452, allocations: 136.1 MB / 1.554 GB, free: 135.1 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.591e-05/4.453, allocations: 57.56 kB / 1.554 GB, free: 135.1 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001533/4.453, allocations: 57.62 kB / 1.554 GB, free: 135.1 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000113/4.453, allocations: 27.81 kB / 1.554 GB, free: 135.1 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5493/5.002, allocations: 202.7 MB / 1.752 GB, free: 149.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-05/5.002, allocations: 5.844 kB / 1.752 GB, free: 149.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001445/5.004, allocations: 332.8 kB / 1.752 GB, free: 149.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06948/5.073, allocations: 33.26 MB / 1.785 GB, free: 132.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001502/5.075, allocations: 102.9 kB / 1.785 GB, free: 132.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4031/5.478, allocations: 183.4 MB / 1.964 GB, free: 139.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.533e-06/5.478, allocations: 9.938 kB / 1.964 GB, free: 139.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5172/5.995, allocations: 151.9 MB / 2.112 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009097/6.004, allocations: 2.96 MB / 2.115 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002276/6.006, allocations: 96.88 kB / 2.115 GB, free: 150.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008685/6.015, allocations: 1.479 MB / 2.117 GB, free: 150.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002972/6.018, allocations: 0.5185 MB / 2.117 GB, free: 150.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007362/6.019, allocations: 141 kB / 2.117 GB, free: 150.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004397/6.023, allocations: 3.565 MB / 2.121 GB, free: 149 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.01e-07/6.023, allocations: 1.531 kB / 2.121 GB, free: 149 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01088/6.034, allocations: 3.801 MB / 2.124 GB, free: 148.7 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (j1.phi,j1.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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.3262/6.36, allocations: 152.4 MB / 2.273 GB, free: 23.32 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.269/6.629, allocations: 32.6 MB / 2.305 GB, free: 171.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.315e-05/6.629, allocations: 0 / 2.305 GB, free: 171.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.03716/6.666, allocations: 19.54 MB / 2.324 GB, free: 167.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01039/6.677, allocations: 0.8214 MB / 2.325 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.238/7.915, allocations: 353.1 MB / 2.67 GB, free: 147.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007274/7.922, allocations: 4.633 MB / 2.674 GB, free: 147.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004917/7.927, allocations: 2.071 MB / 2.676 GB, free: 147 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003451/7.93, allocations: 3.033 MB / 2.679 GB, free: 147 MB / 0.5294 GB Notification: Performance of SimCode: time 1.193e-06/7.93, allocations: 0 / 2.679 GB, free: 147 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.736/9.666, allocations: 345.1 MB / 3.016 GB, free: 46.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.87/35.54, allocations: 8.016 kB / 3.016 GB, free: 46.29 MB / 0.5294 GB " [Timeout remaining time 624] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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: 39.79822510480881]