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.001381/0.001381, allocations: 102.9 kB / 17.16 MB, free: 6.316 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.001671/0.001671, allocations: 190 kB / 18.07 MB, free: 5.414 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.53/1.53, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.00132/0.00132, allocations: 47.92 kB / 280 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.113, allocations: 46.61 MB / 326.6 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.3247/0.4377, allocations: 75.43 MB / 402 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03557/0.4733, allocations: 14.97 MB / 417 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01991/0.4933, allocations: 338.8 kB / 417.3 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008384/0.5017, allocations: 4.44 MB / 421.8 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007243/0.509, allocations: 2.393 MB / 424.2 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00329/0.5123, allocations: 1.067 MB / 425.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01415/0.5265, allocations: 10.51 MB / 435.7 MB, free: 7.059 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007573/0.5341, allocations: 5.212 MB / 440.9 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004955/0.5391, allocations: 2.216 MB / 443.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007397/0.5465, allocations: 3.609 MB / 446.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001937/0.5485, allocations: 356 kB / 447.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004089/0.5526, allocations: 1.396 MB / 448.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003191/0.5558, allocations: 2.847 MB / 451.4 MB, free: 7.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004161/0.56, allocations: 3.213 MB / 454.6 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01105/0.5711, allocations: 9.943 MB / 464.5 MB, free: 10.87 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.5711, allocations: 4 kB / 464.5 MB, free: 10.86 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.5711, allocations: 0 / 464.5 MB, free: 10.86 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003764/0.5715, allocations: 0 / 464.5 MB, free: 10.86 MB / 366.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.02203/0.5935, allocations: 7.629 MB / 472.1 MB, free: 3.281 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.5936, allocations: 12.03 kB / 472.2 MB, free: 3.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01521/0.6088, allocations: 3.179 MB / 475.3 MB, free: 80 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01198/0.6208, allocations: 4.89 MB / 480.2 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003079/0.6212, allocations: 335.7 kB / 480.6 MB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002161/0.6234, allocations: 470.5 kB / 481 MB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0289/0.6523, allocations: 14.56 MB / 495.6 MB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002398/0.6526, allocations: 75.33 kB / 495.6 MB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000658/0.6532, allocations: 210.2 kB / 495.9 MB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005009/0.6582, allocations: 2.834 MB / 498.7 MB, free: 8.055 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02713/0.6854, allocations: 13.22 MB / 0.4999 GB, free: 10.81 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2813/0.9668, allocations: 58.53 MB / 0.5571 GB, free: 130.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0178/0.9846, allocations: 7.723 MB / 0.5646 GB, free: 129.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005068/0.9897, allocations: 5.045 MB / 0.5695 GB, free: 127.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01672/1.006, allocations: 12.8 MB / 0.582 GB, free: 121.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.661e-05/1.007, allocations: 77.59 kB / 0.5821 GB, free: 121.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.111e-06/1.007, allocations: 0 / 0.5821 GB, free: 121.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.006/3.013, allocations: 411.5 MB / 0.9839 GB, free: 57.03 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/3.013, allocations: 265.6 kB / 0.9842 GB, free: 56.71 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01112/3.024, allocations: 5.501 MB / 0.9896 GB, free: 51.44 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001935/3.026, allocations: 109.7 kB / 0.9897 GB, free: 51.32 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002045/3.028, allocations: 3.935 MB / 0.9935 GB, free: 47.93 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002571/3.03, allocations: 2.018 MB / 0.9955 GB, free: 45.93 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00412/3.035, allocations: 2.174 MB / 0.9976 GB, free: 43.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.356e-05/3.035, allocations: 309 kB / 0.9979 GB, free: 43.44 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01305/3.048, allocations: 11.06 MB / 1.009 GB, free: 32.37 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2181/3.266, allocations: 15.24 MB / 1.024 GB, free: 141.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03475/3.301, allocations: 27.46 MB / 1.05 GB, free: 126.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002387/3.301, allocations: 41.62 kB / 1.05 GB, free: 126.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5525/3.853, allocations: 141.1 MB / 1.188 GB, free: 132.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001834/3.854, allocations: 63.94 kB / 1.188 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002482/3.854, allocations: 142.5 kB / 1.188 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07687/3.931, allocations: 34.68 MB / 1.222 GB, free: 124.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004986/3.936, allocations: 1.568 MB / 1.224 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5114/4.447, allocations: 190.6 MB / 1.41 GB, free: 91.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01448/4.462, allocations: 1.713 MB / 1.412 GB, free: 90.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002754/4.464, allocations: 0.5389 MB / 1.412 GB, free: 89.85 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.006214/4.471, allocations: 3.098 MB / 1.415 GB, free: 87.27 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002009/4.473, allocations: 0.5798 MB / 1.416 GB, free: 86.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.6175/5.09, allocations: 136.7 MB / 1.549 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.263e-05/5.09, allocations: 60.73 kB / 1.549 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002653/5.091, allocations: 59.12 kB / 1.549 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001836/5.091, allocations: 27.89 kB / 1.549 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5667/5.657, allocations: 206.2 MB / 1.751 GB, free: 97.27 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.592e-05/5.658, allocations: 8 kB / 1.751 GB, free: 97.26 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001525/5.659, allocations: 335.6 kB / 1.751 GB, free: 96.94 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0722/5.731, allocations: 33.84 MB / 1.784 GB, free: 68.23 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002514/5.734, allocations: 99.98 kB / 1.784 GB, free: 68.13 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4723/6.206, allocations: 173.4 MB / 1.954 GB, free: 59.09 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.176e-06/6.206, allocations: 12.09 kB / 1.954 GB, free: 59.09 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5544/6.761, allocations: 152.5 MB / 2.103 GB, free: 68.63 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007721/6.769, allocations: 3.011 MB / 2.105 GB, free: 65.91 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003488/6.772, allocations: 95.48 kB / 2.106 GB, free: 65.82 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01034/6.782, allocations: 1.486 MB / 2.107 GB, free: 64.33 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005101/6.788, allocations: 499.6 kB / 2.107 GB, free: 63.85 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001384/6.789, allocations: 145.3 kB / 2.108 GB, free: 63.71 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005636/6.795, allocations: 3.499 MB / 2.111 GB, free: 60.23 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.71e-07/6.795, allocations: 0 / 2.111 GB, free: 60.23 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01849/6.813, allocations: 3.855 MB / 2.115 GB, free: 56.38 MB / 462.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.00202/6.815, allocations: 252.6 kB / 2.115 GB, free: 56.14 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.05615/6.871, allocations: 33.71 MB / 2.148 GB, free: 22.48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.276e-05/6.871, allocations: 0 / 2.148 GB, free: 22.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2563/7.128, allocations: 20.51 MB / 2.168 GB, free: 137.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01007/7.138, allocations: 0.7412 MB / 2.169 GB, free: 137.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04656/7.184, allocations: 30.5 MB / 2.198 GB, free: 128.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007774/7.192, allocations: 5.115 MB / 2.203 GB, free: 126.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005243/7.197, allocations: 2.059 MB / 2.205 GB, free: 125.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009639/7.198, allocations: 310.6 kB / 2.206 GB, free: 125.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.523e-06/7.198, allocations: 4 kB / 2.206 GB, free: 125.3 MB / 462.1 MB Notification: Performance of Templates: time 0.5143/7.713, allocations: 270.2 MB / 2.47 GB, free: 5.305 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches