Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.001004/0.001004, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.0009551/0.0009551, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.9786/0.9786, allocations: 173.4 MB / 202.3 MB, free: 8.277 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.475e-06/2.475e-06, allocations: 0 / 269.2 MB, free: 9.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.468e-05/3.715e-05, allocations: 2.969 kB / 269.2 MB, free: 9.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01771/0.01775, allocations: 15 MB / 284.2 MB, free: 10.72 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01159/0.02934, allocations: 5.024 MB / 289.2 MB, free: 5.691 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003189/0.03253, allocations: 135.2 kB / 289.4 MB, free: 5.559 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007419/0.03994, allocations: 4.707 MB / 294.1 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007034/0.04698, allocations: 2.713 MB / 296.8 MB, free: 14.11 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002661/0.04964, allocations: 1.287 MB / 298.1 MB, free: 12.82 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01143/0.06107, allocations: 8.979 MB / 307 MB, free: 3.824 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005018/0.06608, allocations: 5.22 MB / 312.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005481/0.07157, allocations: 5.42 MB / 317.7 MB, free: 9.094 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003568/0.07513, allocations: 3.667 MB / 321.3 MB, free: 5.418 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006019/0.07574, allocations: 0.5156 MB / 321.9 MB, free: 4.902 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001782/0.07752, allocations: 1.455 MB / 323.3 MB, free: 3.445 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001921/0.07944, allocations: 3.207 MB / 326.5 MB, free: 236 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001736/0.08117, allocations: 2.014 MB / 328.5 MB, free: 14.21 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006255/0.08743, allocations: 6.828 MB / 335.4 MB, free: 7.355 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.08744, allocations: 0 / 335.4 MB, free: 7.355 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.08744, allocations: 0 / 335.4 MB, free: 7.355 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002391/0.08768, allocations: 0 / 335.4 MB, free: 7.355 MB / 314.7 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.1331/0.2208, allocations: 7.781 MB / 343.1 MB, free: 69.59 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.2208, allocations: 10.81 kB / 343.2 MB, free: 69.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00878/0.2296, allocations: 2.67 MB / 345.8 MB, free: 69.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005493/0.2351, allocations: 3.536 MB / 349.4 MB, free: 68.66 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001541/0.2352, allocations: 339.2 kB / 349.7 MB, free: 68.65 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006202/0.2359, allocations: 466.7 kB / 350.2 MB, free: 68.64 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009452/0.2453, allocations: 7.768 MB / 357.9 MB, free: 62.91 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000157/0.2455, allocations: 71.41 kB / 358 MB, free: 62.87 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004703/0.2459, allocations: 217.5 kB / 358.2 MB, free: 62.7 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002111/0.2481, allocations: 2.313 MB / 360.5 MB, free: 60.43 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008135/0.2562, allocations: 3.594 MB / 364.1 MB, free: 56.85 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03914/0.2953, allocations: 58.71 MB / 422.8 MB, free: 13.31 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008801/0.3041, allocations: 2.772 MB / 425.6 MB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001266/0.3054, allocations: 0.7938 MB / 426.4 MB, free: 9.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009138/0.3145, allocations: 6.707 MB / 433.1 MB, free: 3.102 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.173e-05/0.3146, allocations: 67.16 kB / 433.2 MB, free: 3.031 MB / 330.7 MB Notification: Performance of pre-optimization done (n=237): time 3.977e-06/0.3146, allocations: 0 / 433.2 MB, free: 3.031 MB / 330.7 MB Notification: Performance of matching and sorting (n=349): time 0.1035/0.418, allocations: 32.44 MB / 465.6 MB, free: 2.754 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.768e-05/0.4181, allocations: 243.9 kB / 465.8 MB, free: 2.465 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005898/0.424, allocations: 4.836 MB / 470.7 MB, free: 13.63 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008179/0.4248, allocations: 77.7 kB / 470.7 MB, free: 13.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003049/0.4279, allocations: 4.642 MB / 475.4 MB, free: 8.863 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001883/0.4298, allocations: 1.395 MB / 476.8 MB, free: 7.457 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002581/0.4324, allocations: 1.874 MB / 478.7 MB, free: 5.562 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.4325, allocations: 480.7 kB / 479.1 MB, free: 5.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002674/0.4352, allocations: 1.68 MB / 480.8 MB, free: 3.402 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1395/0.5747, allocations: 8.674 MB / 489.5 MB, free: 105.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0118/0.5865, allocations: 11.01 MB / 0.4888 GB, free: 96.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.363e-05/0.5866, allocations: 45.09 kB / 0.4888 GB, free: 96.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=1135) (initialization): time 0.03369/0.6202, allocations: 12.15 MB / 0.5007 GB, free: 95.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.782e-05/0.6203, allocations: 79.42 kB / 0.5007 GB, free: 95.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001418/0.6205, allocations: 161 kB / 0.5009 GB, free: 95.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02354/0.644, allocations: 9.742 MB / 0.5104 GB, free: 91.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003538/0.6475, allocations: 1.681 MB / 0.5121 GB, free: 90.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03266/0.6802, allocations: 21.48 MB / 0.533 GB, free: 69.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006578/0.6868, allocations: 358.4 kB / 0.5334 GB, free: 68.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008407/0.6876, allocations: 423.1 kB / 0.5338 GB, free: 68.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 734 * 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 (934): * Single equations (assignments): 927 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(21,67,29.3%), (17,35,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of prepare postOptimizeDAE: time 0.002099/0.6897, allocations: 0.8267 MB / 0.5346 GB, free: 67.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009286/0.6906, allocations: 0.5993 MB / 0.5352 GB, free: 67.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02762/0.7183, allocations: 7.986 MB / 0.543 GB, free: 59.15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.807e-05/0.7183, allocations: 37.72 kB / 0.543 GB, free: 59.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.545e-05/0.7184, allocations: 31.94 kB / 0.543 GB, free: 59.08 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.823e-05/0.7184, allocations: 15.94 kB / 0.5431 GB, free: 59.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0522/0.7706, allocations: 24.54 MB / 0.567 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.983e-05/0.7707, allocations: 12 kB / 0.567 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001011/0.7717, allocations: 291.5 kB / 0.5673 GB, free: 32.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02077/0.7925, allocations: 9.169 MB / 0.5763 GB, free: 22.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000403/0.7929, allocations: 71.98 kB / 0.5763 GB, free: 22.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02773/0.8206, allocations: 18.05 MB / 0.594 GB, free: 4.508 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.226e-06/0.8206, allocations: 11.94 kB / 0.594 GB, free: 4.496 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02909/0.8497, allocations: 9.87 MB / 0.6036 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001545/0.8512, allocations: 0.4958 MB / 0.6041 GB, free: 9.824 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005655/0.8518, allocations: 75.97 kB / 0.6042 GB, free: 9.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001681/0.8535, allocations: 67.98 kB / 0.6042 GB, free: 9.684 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001074/0.8545, allocations: 310.9 kB / 0.6045 GB, free: 9.379 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002276/0.8548, allocations: 79.98 kB / 0.6046 GB, free: 9.301 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002052/0.8568, allocations: 2.017 MB / 0.6066 GB, free: 7.297 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.8568, allocations: 4.031 kB / 0.6066 GB, free: 7.293 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.009866/0.8667, allocations: 2.481 MB / 0.609 GB, free: 4.82 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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 (167): * Single equations (assignments): 160 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(21,60,29.3%), (17,33,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001082/0.8678, allocations: 245.7 kB / 0.6092 GB, free: 4.59 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.1404/1.008, allocations: 7.827 MB / 0.6169 GB, free: 114.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.124e-05/1.008, allocations: 3.906 kB / 0.6169 GB, free: 114.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00812/1.016, allocations: 4.147 MB / 0.6209 GB, free: 113.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003916/1.02, allocations: 0.6732 MB / 0.6216 GB, free: 113.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01973/1.04, allocations: 13.69 MB / 0.635 GB, free: 108.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002312/1.042, allocations: 1.964 MB / 0.6369 GB, free: 108.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001938/1.044, allocations: 0.6525 MB / 0.6375 GB, free: 108.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001089/1.045, allocations: 0.7894 MB / 0.6383 GB, free: 108.4 MB / 394.7 MB Notification: Performance of SimCode: time 2.414e-06/1.045, allocations: 0 / 0.6383 GB, free: 108.4 MB / 394.7 MB Notification: Performance of Templates: time 0.2639/1.309, allocations: 143.7 MB / 0.7786 GB, free: 121.1 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.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: 6.240865538362414]