Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.002368/0.002368, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002891/0.002891, allocations: 169.3 kB / 24.28 MB, free: 152 kB / 18.57 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.565/1.565, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.724e-06/1.724e-06, allocations: 0 / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.339e-05/3.512e-05, allocations: 2.312 kB / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.02113/0.02116, allocations: 15.36 MB / 287.7 MB, free: 2.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1467/0.1679, allocations: 5.036 MB / 292.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002785/0.1707, allocations: 135.8 kB / 292.8 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008852/0.1795, allocations: 4.76 MB / 297.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007558/0.1871, allocations: 2.662 MB / 300.3 MB, free: 13 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00289/0.19, allocations: 1.297 MB / 301.6 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01031/0.2003, allocations: 9.219 MB / 310.8 MB, free: 8.141 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005907/0.2062, allocations: 5.216 MB / 316 MB, free: 4.34 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004463/0.2106, allocations: 3.818 MB / 319.8 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005737/0.2164, allocations: 3.824 MB / 323.6 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001322/0.2177, allocations: 0.5195 MB / 324.2 MB, free: 12.69 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003193/0.2209, allocations: 1.46 MB / 325.6 MB, free: 11.27 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003697/0.2246, allocations: 3.201 MB / 328.8 MB, free: 8.164 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003678/0.2283, allocations: 2.009 MB / 330.8 MB, free: 6.242 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01418/0.2424, allocations: 10.55 MB / 341.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.2424, allocations: 0 / 341.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2424, allocations: 4 kB / 341.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000288/0.2427, allocations: 0 / 341.4 MB, free: 11.98 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02285/0.2656, allocations: 8.912 MB / 350.3 MB, free: 3.113 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.2656, allocations: 8.031 kB / 350.3 MB, free: 3.105 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0174/0.283, allocations: 3.984 MB / 354.3 MB, free: 15.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01245/0.2955, allocations: 4.248 MB / 358.5 MB, free: 10.87 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003574/0.2958, allocations: 338.1 kB / 358.9 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001616/0.2975, allocations: 467 kB / 359.3 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02348/0.3209, allocations: 9.433 MB / 368.8 MB, free: 15.62 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002137/0.3212, allocations: 67.47 kB / 368.8 MB, free: 15.56 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000598/0.3218, allocations: 214.5 kB / 369 MB, free: 15.39 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005923/0.3277, allocations: 2.83 MB / 371.9 MB, free: 12.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.019/0.3467, allocations: 5.788 MB / 377.6 MB, free: 6.762 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2306/0.5773, allocations: 64.43 MB / 442.1 MB, free: 69.13 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01436/0.5917, allocations: 3.947 MB / 446 MB, free: 68.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002886/0.5946, allocations: 1.498 MB / 447.5 MB, free: 68.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01575/0.6103, allocations: 7.693 MB / 455.2 MB, free: 67.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.493e-05/0.6104, allocations: 81.84 kB / 455.3 MB, free: 67.74 MB / 378.7 MB Notification: Performance of pre-optimization done (n=326): time 6.442e-06/0.6104, allocations: 0 / 455.3 MB, free: 67.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=572): time 0.7887/1.399, allocations: 200.3 MB / 0.6402 GB, free: 135.4 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/1.399, allocations: 269.6 kB / 0.6405 GB, free: 135 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007304/1.406, allocations: 5.629 MB / 0.646 GB, free: 131.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002158/1.409, allocations: 116.4 kB / 0.6461 GB, free: 131.4 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00277/1.411, allocations: 4.542 MB / 0.6506 GB, free: 128.7 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00328/1.415, allocations: 2.355 MB / 0.6529 GB, free: 126.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005034/1.42, allocations: 2.498 MB / 0.6553 GB, free: 124.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.015e-05/1.42, allocations: 480.8 kB / 0.6557 GB, free: 124.4 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008194/1.428, allocations: 4.099 MB / 0.6598 GB, free: 120.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01187/1.44, allocations: 10.68 MB / 0.6702 GB, free: 106.9 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02244/1.462, allocations: 16.82 MB / 0.6866 GB, free: 87.63 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001907/1.462, allocations: 40 kB / 0.6866 GB, free: 87.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.4673/1.93, allocations: 113.5 MB / 0.7975 GB, free: 123 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.887e-05/1.93, allocations: 64 kB / 0.7975 GB, free: 123 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001389/1.93, allocations: 140 kB / 0.7977 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1454/2.075, allocations: 57.56 MB / 0.8539 GB, free: 69.81 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004802/2.08, allocations: 1.571 MB / 0.8554 GB, free: 68.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3322/2.412, allocations: 66.7 MB / 0.9206 GB, free: 126.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01452/2.427, allocations: 1.805 MB / 0.9223 GB, free: 126.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002706/2.43, allocations: 0.5423 MB / 0.9228 GB, free: 126.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * 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 (840): * Single equations (assignments): 833 * 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,164,40.5%), (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.005277/2.435, allocations: 0.9532 MB / 0.9238 GB, free: 126.4 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002757/2.438, allocations: 0.7103 MB / 0.9245 GB, free: 126.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3013/2.739, allocations: 110.2 MB / 1.032 GB, free: 43.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001111/2.739, allocations: 56 kB / 1.032 GB, free: 43.12 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002119/2.739, allocations: 60 kB / 1.032 GB, free: 43.06 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001427/2.739, allocations: 27.84 kB / 1.032 GB, free: 43.04 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5114/3.251, allocations: 163.6 MB / 1.192 GB, free: 42.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-05/3.251, allocations: 8 kB / 1.192 GB, free: 42.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001565/3.252, allocations: 334.8 kB / 1.192 GB, free: 42.56 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2926/3.545, allocations: 56.26 MB / 1.247 GB, free: 131.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001735/3.547, allocations: 102.1 kB / 1.247 GB, free: 131.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1531/3.7, allocations: 60.23 MB / 1.306 GB, free: 96.38 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/3.7, allocations: 11.38 kB / 1.306 GB, free: 96.37 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.452/4.152, allocations: 114.1 MB / 1.418 GB, free: 119.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001851/4.154, allocations: 0.5632 MB / 1.418 GB, free: 119.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002695/4.157, allocations: 102.7 kB / 1.418 GB, free: 119.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01064/4.167, allocations: 1.557 MB / 1.42 GB, free: 118.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004416/4.172, allocations: 0.5175 MB / 1.42 GB, free: 118.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001377/4.173, allocations: 146.8 kB / 1.42 GB, free: 118.5 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004609/4.178, allocations: 2.462 MB / 1.423 GB, free: 117.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 1e-07/4.178, allocations: 0 / 1.423 GB, free: 117.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01428/4.192, allocations: 4.085 MB / 1.427 GB, free: 117.9 MB / 442.7 MB 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.001883/4.194, allocations: 266.2 kB / 1.427 GB, free: 117.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.04546/4.239, allocations: 21.07 MB / 1.448 GB, free: 101.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/4.239, allocations: 0 / 1.448 GB, free: 101.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03387/4.273, allocations: 14.44 MB / 1.462 GB, free: 88.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006394/4.279, allocations: 0.729 MB / 1.463 GB, free: 88.11 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02819/4.308, allocations: 19.29 MB / 1.481 GB, free: 71.82 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004451/4.312, allocations: 4.174 MB / 1.485 GB, free: 67.68 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003608/4.316, allocations: 1.725 MB / 1.487 GB, free: 65.98 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007478/4.316, allocations: 292.4 kB / 1.487 GB, free: 65.7 MB / 442.7 MB Notification: Performance of SimCode: time 1.623e-06/4.316, allocations: 4 kB / 1.487 GB, free: 65.69 MB / 442.7 MB Notification: Performance of Templates: time 0.5984/4.915, allocations: 293.3 MB / 1.774 GB, free: 68.98 MB / 442.7 MB " [Timeout remaining time 655] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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: 14.336296816007234]