Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001412/0.001412, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001812/0.001812, allocations: 205.3 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.482/1.482, allocations: 230.5 MB / 257.4 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002193/0.002193, allocations: 63.89 kB / 378.2 MB, free: 2.301 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2803, allocations: 53.4 MB / 431.6 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01635/0.2967, allocations: 13.01 MB / 444.7 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01065/0.3073, allocations: 4.616 MB / 449.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002336/0.3096, allocations: 111.5 kB / 449.4 MB, free: 4.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006331/0.316, allocations: 3.095 MB / 452.5 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006709/0.3227, allocations: 2.603 MB / 455.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002375/0.3251, allocations: 0.9983 MB / 456.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01165/0.3367, allocations: 7.04 MB / 463.1 MB, free: 6.926 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00516/0.3419, allocations: 3.569 MB / 466.7 MB, free: 3.289 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004259/0.3461, allocations: 2.25 MB / 468.9 MB, free: 1.031 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005491/0.3516, allocations: 3.36 MB / 472.3 MB, free: 13.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001529/0.3531, allocations: 484 kB / 472.8 MB, free: 13.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003432/0.3566, allocations: 1.389 MB / 474.2 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003784/0.3604, allocations: 2.91 MB / 477.1 MB, free: 8.879 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005552/0.3659, allocations: 2.38 MB / 479.4 MB, free: 6.484 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01444/0.3804, allocations: 10.45 MB / 489.9 MB, free: 12 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3804, allocations: 0 / 489.9 MB, free: 12 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3804, allocations: 0 / 489.9 MB, free: 12 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003584/0.3807, allocations: 0 / 489.9 MB, free: 12 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01768/0.3984, allocations: 7.357 MB / 497.2 MB, free: 4.562 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.3985, allocations: 15.98 kB / 497.3 MB, free: 4.547 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01705/0.4155, allocations: 3.974 MB / 0.4895 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01162/0.4271, allocations: 4.071 MB / 0.4935 GB, free: 12.44 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003181/0.4274, allocations: 316.4 kB / 0.4938 GB, free: 12.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001801/0.4292, allocations: 435.6 kB / 0.4942 GB, free: 11.7 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03051/0.4597, allocations: 15.79 MB / 0.5096 GB, free: 10.96 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00021/0.46, allocations: 63.5 kB / 0.5097 GB, free: 10.89 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001102/0.4611, allocations: 203.8 kB / 0.5099 GB, free: 10.7 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005355/0.4664, allocations: 3.219 MB / 0.513 GB, free: 7.473 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02955/0.496, allocations: 14.1 MB / 0.5268 GB, free: 9.355 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2886/0.7845, allocations: 53.37 MB / 0.5789 GB, free: 57.09 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01218/0.7967, allocations: 5.346 MB / 0.5841 GB, free: 54.57 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003683/0.8004, allocations: 3.339 MB / 0.5874 GB, free: 51.55 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02029/0.8207, allocations: 11.93 MB / 0.599 GB, free: 39.82 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.27e-05/0.8207, allocations: 72.44 kB / 0.5991 GB, free: 39.74 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 7.194e-06/0.8207, allocations: 0 / 0.5991 GB, free: 39.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1758/0.9966, allocations: 42.53 MB / 0.6406 GB, free: 13.64 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001492/0.9967, allocations: 214 kB / 0.6408 GB, free: 13.39 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009044/1.006, allocations: 5.207 MB / 0.6459 GB, free: 8.387 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008433/1.007, allocations: 73.7 kB / 0.646 GB, free: 8.309 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004121/1.011, allocations: 4.56 MB / 0.6504 GB, free: 3.859 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002234/1.013, allocations: 1.306 MB / 0.6517 GB, free: 2.543 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006027/1.019, allocations: 1.865 MB / 0.6535 GB, free: 0.6641 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001777/1.019, allocations: 301.1 kB / 0.6538 GB, free: 376 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0134/1.033, allocations: 4.8 MB / 0.6585 GB, free: 11.56 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02006/1.053, allocations: 9.84 MB / 0.6681 GB, free: 15.26 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0344/1.087, allocations: 15.56 MB / 0.6833 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002921/1.087, allocations: 48 kB / 0.6834 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.06915/1.156, allocations: 19.48 MB / 0.7024 GB, free: 9.656 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002846/1.157, allocations: 80 kB / 0.7025 GB, free: 9.578 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004137/1.157, allocations: 176 kB / 0.7026 GB, free: 9.406 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02554/1.183, allocations: 5.941 MB / 0.7084 GB, free: 3.453 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007931/1.191, allocations: 2.105 MB / 0.7105 GB, free: 1.344 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03933/1.23, allocations: 25.68 MB / 0.7356 GB, free: 7.445 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008093/1.238, allocations: 0.554 MB / 0.7361 GB, free: 6.891 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001914/1.24, allocations: 0.5078 MB / 0.7366 GB, free: 6.383 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1094): * Single equations (assignments): 1086 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006865/1.247, allocations: 3.102 MB / 0.7396 GB, free: 3.266 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001441/1.248, allocations: 484.7 kB / 0.7401 GB, free: 2.789 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2648/1.513, allocations: 12.86 MB / 0.7526 GB, free: 189.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001411/1.513, allocations: 55.42 kB / 0.7527 GB, free: 189.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.503e-05/1.513, allocations: 7.594 kB / 0.7527 GB, free: 189.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001051/1.513, allocations: 16.64 kB / 0.7527 GB, free: 189.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04754/1.561, allocations: 22.15 MB / 0.7744 GB, free: 178 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.736e-05/1.561, allocations: 11.98 kB / 0.7744 GB, free: 178 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00306/1.564, allocations: 0.5752 MB / 0.7749 GB, free: 177.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01898/1.583, allocations: 4.972 MB / 0.7798 GB, free: 172.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007416/1.584, allocations: 52 kB / 0.7798 GB, free: 172.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0228/1.607, allocations: 20.89 MB / 0.8002 GB, free: 151.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/1.607, allocations: 4 kB / 0.8002 GB, free: 151.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03304/1.64, allocations: 17.4 MB / 0.8172 GB, free: 134.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001413/1.641, allocations: 441.2 kB / 0.8176 GB, free: 134 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009804/1.642, allocations: 55.98 kB / 0.8177 GB, free: 134 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00295/1.645, allocations: 263.3 kB / 0.818 GB, free: 133.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006798/1.646, allocations: 209.3 kB / 0.8182 GB, free: 133.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002521/1.646, allocations: 83.98 kB / 0.8182 GB, free: 133.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003532/1.649, allocations: 3 MB / 0.8212 GB, free: 130.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.21e-07/1.649, allocations: 0 / 0.8212 GB, free: 130.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007254/1.657, allocations: 1.717 MB / 0.8228 GB, free: 128.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006259/1.657, allocations: 214.3 kB / 0.823 GB, free: 128.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01315/1.67, allocations: 10.49 MB / 0.8333 GB, free: 118.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/1.67, allocations: 0 / 0.8333 GB, free: 118.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004788/1.675, allocations: 3.786 MB / 0.837 GB, free: 114.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003658/1.679, allocations: 0.5227 MB / 0.8375 GB, free: 113.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02207/1.701, allocations: 16.29 MB / 0.8534 GB, free: 97.49 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004415/1.705, allocations: 4.116 MB / 0.8574 GB, free: 93.33 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005955/1.711, allocations: 2.912 MB / 0.8603 GB, free: 90.41 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001284/1.713, allocations: 331.4 kB / 0.8606 GB, free: 90.09 MB / 0.545 GB Notification: Performance of SimCode: time 1.002e-06/1.713, allocations: 0 / 0.8606 GB, free: 90.09 MB / 0.545 GB Notification: Performance of Templates: time 0.1037/1.816, allocations: 78.6 MB / 0.9373 GB, free: 11.85 MB / 0.545 GB " [Timeout remaining time 658] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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: 8.343138229101896]