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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 110.9 kB / 17.68 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 192 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 51.23 kB / 302.1 MB, free: 5.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09396/0.09509, allocations: 49.43 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01539/0.1105, allocations: 15.91 MB / 367.4 MB, free: 3.699 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1988/0.3093, allocations: 5.1 MB / 372.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003625/0.313, allocations: 111.7 kB / 372.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009129/0.3222, allocations: 4.446 MB / 377.1 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007433/0.3297, allocations: 2.531 MB / 379.6 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002932/0.3327, allocations: 1.157 MB / 380.8 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01364/0.3463, allocations: 7.976 MB / 388.7 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007327/0.3537, allocations: 5.318 MB / 394 MB, free: 3.465 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005543/0.3593, allocations: 2.464 MB / 396.5 MB, free: 2.207 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005322/0.3646, allocations: 3.36 MB / 399.9 MB, free: 172 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001888/0.3665, allocations: 0.5 MB / 400.4 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00401/0.3706, allocations: 1.502 MB / 401.9 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003515/0.3741, allocations: 2.956 MB / 404.8 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005789/0.3799, allocations: 3.35 MB / 408.2 MB, free: 7.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01311/0.393, allocations: 10.34 MB / 418.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.3931, allocations: 0 / 418.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.3931, allocations: 0 / 418.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000375/0.3935, allocations: 0 / 418.5 MB, free: 13.79 MB / 334.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.02007/0.4136, allocations: 7.609 MB / 426.1 MB, free: 6.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.4136, allocations: 12.03 kB / 426.1 MB, free: 6.219 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01424/0.4279, allocations: 3.181 MB / 429.3 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01219/0.4401, allocations: 4.829 MB / 434.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003006/0.4405, allocations: 341 kB / 434.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001608/0.4421, allocations: 462.8 kB / 434.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02623/0.4683, allocations: 14.57 MB / 449.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002076/0.4686, allocations: 71.36 kB / 449.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006195/0.4692, allocations: 217.5 kB / 449.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005205/0.4744, allocations: 2.832 MB / 452.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02727/0.5017, allocations: 13.22 MB / 465.8 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07765/0.5794, allocations: 58.25 MB / 0.5118 GB, free: 2.336 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01738/0.5968, allocations: 7.735 MB / 0.5193 GB, free: 10.46 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006376/0.6032, allocations: 5.048 MB / 0.5243 GB, free: 5.395 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2061/0.8094, allocations: 12.8 MB / 0.5368 GB, free: 143.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.537e-05/0.8095, allocations: 66.14 kB / 0.5368 GB, free: 143.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.891e-06/0.8095, allocations: 0.6562 kB / 0.5368 GB, free: 143.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.853/2.663, allocations: 411.4 MB / 0.9386 GB, free: 77.14 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/2.663, allocations: 267.7 kB / 0.9388 GB, free: 76.83 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007051/2.67, allocations: 5.45 MB / 0.9442 GB, free: 71.59 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001946/2.672, allocations: 113.1 kB / 0.9443 GB, free: 71.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002194/2.674, allocations: 3.935 MB / 0.9481 GB, free: 68.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003144/2.677, allocations: 2.013 MB / 0.9501 GB, free: 66.24 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004852/2.682, allocations: 2.179 MB / 0.9522 GB, free: 64.05 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.951e-05/2.682, allocations: 306.8 kB / 0.9525 GB, free: 63.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01336/2.696, allocations: 11.06 MB / 0.9633 GB, free: 52.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01532/2.711, allocations: 15.25 MB / 0.9782 GB, free: 35.59 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02924/2.74, allocations: 27.45 MB / 1.005 GB, free: 6.258 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001341/2.74, allocations: 40.88 kB / 1.005 GB, free: 6.219 MB / 446.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5292/3.27, allocations: 141.1 MB / 1.143 GB, free: 43.54 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.087e-05/3.27, allocations: 64 kB / 1.143 GB, free: 43.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001075/3.27, allocations: 140.2 kB / 1.143 GB, free: 43.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0772/3.347, allocations: 34.68 MB / 1.177 GB, free: 8.641 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2011/3.548, allocations: 1.562 MB / 1.178 GB, free: 132.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4405/3.989, allocations: 203.6 MB / 1.377 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01293/4.002, allocations: 1.722 MB / 1.379 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002569/4.004, allocations: 0.5358 MB / 1.379 GB, free: 110.1 MB / 462.1 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.005993/4.01, allocations: 3.104 MB / 1.382 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001672/4.012, allocations: 0.5718 MB / 1.383 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4547/4.467, allocations: 136.7 MB / 1.516 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.836e-05/4.467, allocations: 63.09 kB / 1.517 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001502/4.467, allocations: 61.47 kB / 1.517 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001045/4.467, allocations: 29.17 kB / 1.517 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.539/5.006, allocations: 206 MB / 1.718 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-05/5.006, allocations: 3.812 kB / 1.718 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001486/5.008, allocations: 331.6 kB / 1.718 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06785/5.076, allocations: 33.42 MB / 1.751 GB, free: 122.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001632/5.077, allocations: 100.9 kB / 1.751 GB, free: 122.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4045/5.482, allocations: 186.2 MB / 1.933 GB, free: 105.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/5.482, allocations: 10.72 kB / 1.933 GB, free: 105.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5197/6.002, allocations: 152.5 MB / 2.082 GB, free: 118.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001644/6.003, allocations: 0.6305 MB / 2.082 GB, free: 118.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002112/6.005, allocations: 103.1 kB / 2.082 GB, free: 118.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008179/6.014, allocations: 1.481 MB / 2.084 GB, free: 117.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00329/6.017, allocations: 0.4923 MB / 2.084 GB, free: 117.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008054/6.018, allocations: 141.4 kB / 2.084 GB, free: 117.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004161/6.022, allocations: 3.468 MB / 2.088 GB, free: 116.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.5e-07/6.022, allocations: 0 / 2.088 GB, free: 116.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01207/6.034, allocations: 3.856 MB / 2.092 GB, free: 113.7 MB / 478.1 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.001413/6.035, allocations: 247.6 kB / 2.092 GB, free: 113.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05188/6.087, allocations: 33.82 MB / 2.125 GB, free: 80.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/6.087, allocations: 4 kB / 2.125 GB, free: 80.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03601/6.123, allocations: 20.55 MB / 2.145 GB, free: 59.97 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00624/6.13, allocations: 0.7765 MB / 2.146 GB, free: 59.22 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03908/6.169, allocations: 27.09 MB / 2.172 GB, free: 32.14 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006889/6.176, allocations: 5.101 MB / 2.177 GB, free: 27 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004304/6.18, allocations: 2.053 MB / 2.179 GB, free: 24.95 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000855/6.181, allocations: 315.4 kB / 2.179 GB, free: 24.64 MB / 478.1 MB Notification: Performance of SimCode: time 7.21e-07/6.181, allocations: 0 / 2.179 GB, free: 24.64 MB / 478.1 MB Notification: Performance of Templates: time 0.7033/6.884, allocations: 272.8 MB / 2.446 GB, free: 96.61 MB / 494.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches