Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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.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_3.2.3_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_3.2.3_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.001449/0.00145, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.001633/0.001633, allocations: 186.9 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.36/1.36, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001208, allocations: 55.94 kB / 282.1 MB, free: 2.453 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09233/0.09355, allocations: 46.62 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01554/0.1091, allocations: 16.02 MB / 344.7 MB, free: 3.66 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01094/0.1201, allocations: 5.144 MB / 349.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004789/0.125, allocations: 111.6 kB / 350 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008148/0.1332, allocations: 4.454 MB / 354.4 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007089/0.1403, allocations: 2.548 MB / 357 MB, free: 7.363 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0026/0.1429, allocations: 1.158 MB / 358.1 MB, free: 6.203 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0101/0.1531, allocations: 7.488 MB / 365.6 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007452/0.1605, allocations: 5.335 MB / 371 MB, free: 9.285 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004636/0.1652, allocations: 2.492 MB / 373.5 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004904/0.1701, allocations: 3.376 MB / 376.8 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001189/0.1713, allocations: 0.5039 MB / 377.3 MB, free: 2.895 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002686/0.174, allocations: 1.487 MB / 378.8 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1744/0.3485, allocations: 2.964 MB / 381.8 MB, free: 21.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005899/0.3544, allocations: 3.357 MB / 385.2 MB, free: 20.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01363/0.3681, allocations: 10.37 MB / 395.5 MB, free: 18.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.675e-06/0.3681, allocations: 1.062 kB / 395.5 MB, free: 18.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3681, allocations: 0 / 395.5 MB, free: 18.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004179/0.3685, allocations: 2.938 kB / 395.5 MB, free: 18.75 MB / 318.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.02282/0.3914, allocations: 7.627 MB / 403.2 MB, free: 15.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.3914, allocations: 13.88 kB / 403.2 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01389/0.4053, allocations: 3.188 MB / 406.4 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01182/0.4172, allocations: 4.986 MB / 411.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001872/0.4174, allocations: 339 kB / 411.7 MB, free: 12.06 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001462/0.4189, allocations: 459.9 kB / 412.1 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02255/0.4414, allocations: 14.57 MB / 426.7 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000173/0.4416, allocations: 71.45 kB / 426.8 MB, free: 1.457 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005549/0.4422, allocations: 215.7 kB / 427 MB, free: 1.293 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004707/0.4469, allocations: 2.836 MB / 429.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02513/0.472, allocations: 13.21 MB / 443 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07962/0.5517, allocations: 58.28 MB / 0.4896 GB, free: 6.453 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0179/0.5696, allocations: 7.741 MB / 0.4971 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006344/0.576, allocations: 5.048 MB / 0.502 GB, free: 9.516 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02302/0.5991, allocations: 12.8 MB / 0.5145 GB, free: 12.65 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.486e-05/0.5992, allocations: 67.42 kB / 0.5146 GB, free: 12.57 MB / 430.1 MB Notification: Performance of pre-optimization done (n=326): time 6.602e-06/0.5992, allocations: 0 / 0.5146 GB, free: 12.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=572): time 2.073/2.673, allocations: 411.5 MB / 0.9164 GB, free: 80.9 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/2.673, allocations: 269.6 kB / 0.9167 GB, free: 80.58 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007714/2.681, allocations: 5.494 MB / 0.9221 GB, free: 75.68 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002221/2.683, allocations: 109.7 kB / 0.9222 GB, free: 75.57 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00218/2.685, allocations: 3.947 MB / 0.926 GB, free: 72.33 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003135/2.688, allocations: 2.01 MB / 0.928 GB, free: 70.34 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004289/2.692, allocations: 2.178 MB / 0.9301 GB, free: 68.14 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.63e-05/2.693, allocations: 301.1 kB / 0.9304 GB, free: 67.85 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01257/2.705, allocations: 11.06 MB / 0.9412 GB, free: 56.78 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01544/2.721, allocations: 15.24 MB / 0.9561 GB, free: 39.7 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03028/2.751, allocations: 27.45 MB / 0.9829 GB, free: 10.36 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001283/2.751, allocations: 40 kB / 0.9829 GB, free: 10.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.4613/3.212, allocations: 141.1 MB / 1.121 GB, free: 24.52 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.738e-05/3.212, allocations: 64 kB / 1.121 GB, free: 24.46 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001169/3.213, allocations: 140.1 kB / 1.121 GB, free: 24.32 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2332/3.446, allocations: 34.69 MB / 1.155 GB, free: 134 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004778/3.451, allocations: 1.569 MB / 1.156 GB, free: 134 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4343/3.885, allocations: 203.6 MB / 1.355 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01351/3.899, allocations: 1.71 MB / 1.357 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002446/3.901, allocations: 0.5433 MB / 1.357 GB, free: 109.4 MB / 446.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.00647/3.907, allocations: 3.098 MB / 1.36 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001892/3.909, allocations: 0.5774 MB / 1.361 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5755/4.485, allocations: 136.7 MB / 1.494 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.886e-05/4.485, allocations: 63.16 kB / 1.494 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001974/4.485, allocations: 63.34 kB / 1.494 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000128/4.485, allocations: 26.58 kB / 1.494 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5571/5.042, allocations: 206 MB / 1.696 GB, free: 93.94 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.663e-05/5.042, allocations: 4 kB / 1.696 GB, free: 93.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001474/5.044, allocations: 327.4 kB / 1.696 GB, free: 93.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07003/5.114, allocations: 33.42 MB / 1.729 GB, free: 64.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002356/5.116, allocations: 102.6 kB / 1.729 GB, free: 64.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4052/5.522, allocations: 186.2 MB / 1.911 GB, free: 41.91 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/5.522, allocations: 11.75 kB / 1.911 GB, free: 41.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5199/6.042, allocations: 152.5 MB / 2.06 GB, free: 51.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009209/6.051, allocations: 3.012 MB / 2.062 GB, free: 48.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002616/6.053, allocations: 95.98 kB / 2.063 GB, free: 48.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008877/6.062, allocations: 1.491 MB / 2.064 GB, free: 46.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003386/6.066, allocations: 499.7 kB / 2.064 GB, free: 46.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007817/6.067, allocations: 144 kB / 2.065 GB, free: 46.18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004663/6.071, allocations: 3.502 MB / 2.068 GB, free: 42.71 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/6.071, allocations: 0 / 2.068 GB, free: 42.71 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01325/6.085, allocations: 3.854 MB / 2.072 GB, free: 38.86 MB / 446.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.001317/6.086, allocations: 256.7 kB / 2.072 GB, free: 38.61 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.2186/6.304, allocations: 33.8 MB / 2.105 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.202e-05/6.305, allocations: 1.375 kB / 2.105 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03843/6.343, allocations: 20.55 MB / 2.125 GB, free: 125 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005965/6.349, allocations: 0.779 MB / 2.126 GB, free: 125 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03628/6.385, allocations: 27.15 MB / 2.152 GB, free: 117.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005176/6.39, allocations: 5.12 MB / 2.157 GB, free: 113.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004053/6.395, allocations: 2.052 MB / 2.159 GB, free: 112.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007168/6.395, allocations: 306.9 kB / 2.16 GB, free: 112.3 MB / 446.1 MB Notification: Performance of SimCode: time 9.01e-07/6.395, allocations: 3.219 kB / 2.16 GB, free: 112.3 MB / 446.1 MB Notification: Performance of Templates: time 0.4926/6.888, allocations: 273 MB / 2.426 GB, free: 3.363 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches