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.001372/0.001372, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 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.001458/0.001458, allocations: 184.2 kB / 23.7 MB, free: 4.191 MB / 14.72 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 1.441/1.441, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001665/0.001665, allocations: 51.91 kB / 370.9 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2752, allocations: 52.19 MB / 423.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01841/0.2936, allocations: 13.79 MB / 436.9 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01214/0.3057, allocations: 4.929 MB / 441.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003452/0.3092, allocations: 135.2 kB / 441.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009571/0.3188, allocations: 4.338 MB / 446.3 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008248/0.327, allocations: 2.624 MB / 448.9 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003331/0.3303, allocations: 1.154 MB / 450 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01292/0.3433, allocations: 7.974 MB / 458 MB, free: 11.44 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008149/0.3514, allocations: 4.277 MB / 462.3 MB, free: 7.086 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005738/0.3571, allocations: 2.508 MB / 464.8 MB, free: 4.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006573/0.3637, allocations: 3.415 MB / 468.2 MB, free: 1.145 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002124/0.3658, allocations: 0.5039 MB / 468.7 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004062/0.3699, allocations: 1.401 MB / 470.1 MB, free: 15.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004458/0.3744, allocations: 3.046 MB / 473.2 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005578/0.3799, allocations: 2.528 MB / 475.7 MB, free: 9.641 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0145/0.3944, allocations: 10.44 MB / 486.1 MB, free: 15.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.268e-06/0.3944, allocations: 3.984 kB / 486.1 MB, free: 15.15 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3944, allocations: 0 / 486.1 MB, free: 15.15 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003581/0.3948, allocations: 0 / 486.1 MB, free: 15.15 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.01951/0.4143, allocations: 7.722 MB / 493.9 MB, free: 7.355 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.4144, allocations: 12.03 kB / 493.9 MB, free: 7.344 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01578/0.4301, allocations: 3.222 MB / 497.1 MB, free: 4.113 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0132/0.4433, allocations: 4.778 MB / 0.4901 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000332/0.4437, allocations: 337.1 kB / 0.4904 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001853/0.4455, allocations: 471.6 kB / 0.4909 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02688/0.4724, allocations: 14.64 MB / 0.5052 GB, free: 14.87 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002081/0.4726, allocations: 75.42 kB / 0.5052 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005852/0.4732, allocations: 211.8 kB / 0.5054 GB, free: 14.59 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00547/0.4787, allocations: 2.836 MB / 0.5082 GB, free: 11.75 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02722/0.5059, allocations: 13.15 MB / 0.5211 GB, free: 14.57 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3068/0.8127, allocations: 53.92 MB / 0.5737 GB, free: 65.99 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01609/0.8288, allocations: 6.922 MB / 0.5805 GB, free: 63.66 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00535/0.8341, allocations: 4.597 MB / 0.585 GB, free: 60.51 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02077/0.8549, allocations: 11.44 MB / 0.5961 GB, free: 49.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.039e-05/0.8549, allocations: 64.7 kB / 0.5962 GB, free: 49.16 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 7.654e-06/0.8549, allocations: 6.344 kB / 0.5962 GB, free: 49.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.09/2.945, allocations: 411.3 MB / 0.9979 GB, free: 140.8 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/2.945, allocations: 265.1 kB / 0.9981 GB, free: 140.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006848/2.952, allocations: 4.972 MB / 1.003 GB, free: 135.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.002129/2.954, allocations: 109.7 kB / 1.003 GB, free: 135.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002312/2.957, allocations: 4.126 MB / 1.007 GB, free: 132.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.003265/2.96, allocations: 2.103 MB / 1.009 GB, free: 130.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003989/2.964, allocations: 2.187 MB / 1.011 GB, free: 128.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.324e-05/2.964, allocations: 305.1 kB / 1.012 GB, free: 127.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01187/2.976, allocations: 11.06 MB / 1.022 GB, free: 116.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01386/2.99, allocations: 15.32 MB / 1.037 GB, free: 99.57 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02853/3.018, allocations: 27.45 MB / 1.064 GB, free: 70.31 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002048/3.019, allocations: 40.88 kB / 1.064 GB, free: 70.27 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.7289/3.747, allocations: 140.7 MB / 1.202 GB, free: 123.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001956/3.748, allocations: 68 kB / 1.202 GB, free: 123.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002339/3.748, allocations: 136 kB / 1.202 GB, free: 123.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07713/3.825, allocations: 34.67 MB / 1.236 GB, free: 89.31 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005103/3.83, allocations: 1.567 MB / 1.237 GB, free: 87.88 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4789/4.309, allocations: 200.9 MB / 1.433 GB, free: 103.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01395/4.323, allocations: 1.717 MB / 1.435 GB, free: 102.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002582/4.325, allocations: 0.5368 MB / 1.436 GB, free: 102.3 MB / 0.545 GB 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.007379/4.333, allocations: 3.089 MB / 1.439 GB, free: 99.84 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001903/4.335, allocations: 0.5486 MB / 1.439 GB, free: 99.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.524/4.859, allocations: 136.3 MB / 1.572 GB, free: 158.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.738e-05/4.859, allocations: 56.19 kB / 1.572 GB, free: 158.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001547/4.859, allocations: 63.81 kB / 1.572 GB, free: 158.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001199/4.859, allocations: 30.8 kB / 1.572 GB, free: 158.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5745/5.434, allocations: 201.5 MB / 1.769 GB, free: 155.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-05/5.434, allocations: 9.172 kB / 1.769 GB, free: 155.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001441/5.435, allocations: 330.6 kB / 1.769 GB, free: 155.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0697/5.505, allocations: 33.4 MB / 1.802 GB, free: 137.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001667/5.506, allocations: 108.2 kB / 1.802 GB, free: 137.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4394/5.946, allocations: 183.6 MB / 1.981 GB, free: 150.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.887e-06/5.946, allocations: 10.41 kB / 1.981 GB, free: 150.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5562/6.502, allocations: 152.2 MB / 2.13 GB, free: 153.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001785/6.504, allocations: 0.5114 MB / 2.131 GB, free: 153.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002222/6.506, allocations: 99.69 kB / 2.131 GB, free: 153.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009023/6.515, allocations: 1.486 MB / 2.132 GB, free: 153.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003357/6.518, allocations: 0.519 MB / 2.133 GB, free: 153.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008457/6.519, allocations: 141.8 kB / 2.133 GB, free: 153.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003782/6.523, allocations: 2.968 MB / 2.136 GB, free: 153.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/6.523, allocations: 0 / 2.136 GB, free: 153.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01188/6.535, allocations: 3.846 MB / 2.139 GB, free: 153.5 MB / 0.545 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.001554/6.537, allocations: 243.6 kB / 2.14 GB, free: 153.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.05181/6.588, allocations: 32.74 MB / 2.172 GB, free: 148.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/6.588, allocations: 3.938 kB / 2.172 GB, free: 148.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.03682/6.625, allocations: 19.58 MB / 2.191 GB, free: 140.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00574/6.631, allocations: 0.692 MB / 2.191 GB, free: 139.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03601/6.667, allocations: 27.4 MB / 2.218 GB, free: 115 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005881/6.673, allocations: 4.607 MB / 2.223 GB, free: 111.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004101/6.677, allocations: 1.994 MB / 2.225 GB, free: 110.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007239/6.678, allocations: 279.2 kB / 2.225 GB, free: 110.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.363e-06/6.678, allocations: 4 kB / 2.225 GB, free: 110.1 MB / 0.545 GB Notification: Performance of Templates: time 0.5082/7.186, allocations: 287.3 MB / 2.505 GB, free: 17.07 MB / 0.545 GB " [Timeout remaining time 653] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 16.562442855909467]