Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.001564/0.001564, allocations: 85.08 kB / 22.99 MB, free: 1.504 MB / 18.57 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.001762/0.001762, allocations: 177.2 kB / 26.4 MB, free: 7.977 MB / 18.57 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.002/1.002, allocations: 158.6 MB / 188.3 MB, free: 2.82 MB / 170.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 252.3 MB, free: 7.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.399e-05/2.56e-05, allocations: 6.25 kB / 252.3 MB, free: 7.246 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.0109/0.01093, allocations: 14.15 MB / 266.4 MB, free: 9.027 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008299/0.01922, allocations: 4.703 MB / 271.1 MB, free: 4.312 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00202/0.02124, allocations: 107.5 kB / 271.2 MB, free: 4.207 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003911/0.02516, allocations: 3.348 MB / 274.6 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005164/0.03032, allocations: 2.749 MB / 277.3 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002108/0.03243, allocations: 1.119 MB / 278.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008554/0.04098, allocations: 7.347 MB / 285.8 MB, free: 5.602 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004858/0.04584, allocations: 4.259 MB / 290 MB, free: 1.273 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006977/0.05282, allocations: 4.117 MB / 294.2 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00534/0.05816, allocations: 3.581 MB / 297.7 MB, free: 9.559 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001719/0.05988, allocations: 491.9 kB / 298.2 MB, free: 9.078 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003479/0.06335, allocations: 1.482 MB / 299.7 MB, free: 7.594 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002957/0.06631, allocations: 3.089 MB / 302.8 MB, free: 4.496 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002756/0.06907, allocations: 1.881 MB / 304.7 MB, free: 2.609 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008259/0.07733, allocations: 6.94 MB / 311.6 MB, free: 11.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.07733, allocations: 4 kB / 311.6 MB, free: 11.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.07734, allocations: 0 / 311.6 MB, free: 11.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002915/0.07763, allocations: 0 / 311.6 MB, free: 11.64 MB / 298.7 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.01193/0.08956, allocations: 7.44 MB / 319.1 MB, free: 4.113 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.08961, allocations: 15.92 kB / 319.1 MB, free: 4.098 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008795/0.09841, allocations: 2.786 MB / 321.9 MB, free: 1.305 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006208/0.1046, allocations: 3.098 MB / 325 MB, free: 14.15 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003195/0.1049, allocations: 320.4 kB / 325.3 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001553/0.1065, allocations: 432.2 kB / 325.7 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01388/0.1204, allocations: 8.081 MB / 333.8 MB, free: 4.062 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001384/0.1205, allocations: 63.45 kB / 333.8 MB, free: 4 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004403/0.1209, allocations: 203.8 kB / 334 MB, free: 3.801 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002749/0.1237, allocations: 2.857 MB / 336.9 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009954/0.1336, allocations: 3.939 MB / 340.8 MB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2015/0.3351, allocations: 59.28 MB / 400.1 MB, free: 26.74 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007957/0.3431, allocations: 2.569 MB / 402.7 MB, free: 26.57 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001602/0.3447, allocations: 0.8558 MB / 403.5 MB, free: 26.52 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01354/0.3582, allocations: 6.937 MB / 410.5 MB, free: 25.33 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.268e-05/0.3583, allocations: 65.7 kB / 410.5 MB, free: 25.29 MB / 330.7 MB Notification: Performance of pre-optimization done (n=269): time 5.42e-06/0.3583, allocations: 0 / 410.5 MB, free: 25.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=300): time 0.02966/0.3879, allocations: 10.36 MB / 420.9 MB, free: 22.03 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.588e-05/0.388, allocations: 209.9 kB / 421.1 MB, free: 21.78 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005294/0.3933, allocations: 4.866 MB / 426 MB, free: 17.93 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005691/0.3939, allocations: 68.44 kB / 426 MB, free: 17.86 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002093/0.396, allocations: 4.873 MB / 430.9 MB, free: 13.43 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001213/0.3972, allocations: 1.223 MB / 432.1 MB, free: 12.27 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00185/0.399, allocations: 1.94 MB / 434.1 MB, free: 10.51 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.431e-05/0.3991, allocations: 477.4 kB / 434.5 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001684/0.4008, allocations: 1.021 MB / 435.6 MB, free: 9.016 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004292/0.4051, allocations: 8.769 MB / 444.3 MB, free: 13.07 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009994/0.4151, allocations: 10.61 MB / 454.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001923/0.4152, allocations: 52 kB / 455 MB, free: 15.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.0155/0.4307, allocations: 7.557 MB / 462.5 MB, free: 8.836 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001335/0.4309, allocations: 84.66 kB / 462.6 MB, free: 8.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000231/0.4311, allocations: 180 kB / 462.8 MB, free: 8.578 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00231/0.4334, allocations: 0.8375 MB / 463.6 MB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005164/0.4386, allocations: 1.977 MB / 465.6 MB, free: 5.762 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005467/0.444, allocations: 5.568 MB / 471.2 MB, free: 12 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005714/0.4498, allocations: 369.4 kB / 471.5 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001493/0.4513, allocations: 443.9 kB / 472 MB, free: 15.23 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * 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 (1107): * Single equations (assignments): 1099 * 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,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003121/0.4544, allocations: 0.8782 MB / 472.8 MB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001356/0.4557, allocations: 0.5437 MB / 473.4 MB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004371/0.4601, allocations: 2.42 MB / 475.8 MB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.869e-05/0.4602, allocations: 51.98 kB / 475.9 MB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.4602, allocations: 4 kB / 475.9 MB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.081e-05/0.4602, allocations: 15.95 kB / 475.9 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01491/0.4751, allocations: 7.146 MB / 483 MB, free: 4.465 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.636e-05/0.4751, allocations: 8.094 kB / 483 MB, free: 4.457 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001283/0.4764, allocations: 407.4 kB / 483.4 MB, free: 4.059 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001724/0.4781, allocations: 0.5726 MB / 484 MB, free: 3.488 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002296/0.4784, allocations: 49.09 kB / 484.1 MB, free: 3.441 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004153/0.4825, allocations: 4.595 MB / 488.6 MB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.276e-06/0.4825, allocations: 11.94 kB / 488.7 MB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0059/0.4884, allocations: 3.689 MB / 492.3 MB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001909/0.4903, allocations: 0.7379 MB / 493.1 MB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007047/0.491, allocations: 55.98 kB / 493.1 MB, free: 10.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001258/0.4923, allocations: 48.77 kB / 493.2 MB, free: 9.996 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000328/0.4926, allocations: 185.4 kB / 493.4 MB, free: 9.812 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001386/0.4928, allocations: 63.91 kB / 493.4 MB, free: 9.754 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002713/0.4955, allocations: 1.928 MB / 495.4 MB, free: 8.027 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4955, allocations: 0 / 495.4 MB, free: 8.027 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006809/0.5023, allocations: 1.597 MB / 497 MB, free: 6.434 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (236): * Single equations (assignments): 228 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006358/0.5029, allocations: 221.1 kB / 497.2 MB, free: 6.211 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007024/0.5099, allocations: 4.324 MB / 0.4897 GB, free: 1.992 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.307e-06/0.5099, allocations: 0 / 0.4897 GB, free: 1.992 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001799/0.5117, allocations: 1.175 MB / 0.4909 GB, free: 0.8359 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003162/0.5149, allocations: 0.5359 MB / 0.4914 GB, free: 328 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1615/0.6764, allocations: 11.52 MB / 0.5027 GB, free: 120 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001898/0.6783, allocations: 1.837 MB / 0.5045 GB, free: 119.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002414/0.6807, allocations: 0.7122 MB / 0.5052 GB, free: 119.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00131/0.682, allocations: 0.7902 MB / 0.5059 GB, free: 119.7 MB / 394.7 MB Notification: Performance of SimCode: time 1.974e-06/0.682, allocations: 0 / 0.5059 GB, free: 119.7 MB / 394.7 MB Notification: Performance of Templates: time 0.07118/0.7532, allocations: 52.66 MB / 0.5574 GB, free: 76.97 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.908821376040578]