Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 103.9 kB / 18.39 MB, free: 4.641 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.001256/0.001256, allocations: 190.5 kB / 19.33 MB, free: 3.715 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.314/1.314, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.001264/0.001265, allocations: 55.92 kB / 329.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09741/0.09868, allocations: 46.61 MB / 375.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2182/0.3169, allocations: 13.53 MB / 389.3 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01173/0.3287, allocations: 4.857 MB / 394.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004404/0.3332, allocations: 90.44 kB / 394.3 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009255/0.3425, allocations: 4.188 MB / 398.5 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006835/0.3494, allocations: 2.213 MB / 400.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003092/0.3525, allocations: 1.105 MB / 401.8 MB, free: 15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009038/0.3615, allocations: 5.633 MB / 407.4 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008192/0.3698, allocations: 5.304 MB / 412.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005224/0.375, allocations: 2.168 MB / 414.9 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005577/0.3807, allocations: 2.883 MB / 417.8 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002012/0.3827, allocations: 0.4922 MB / 418.3 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004659/0.3874, allocations: 1.635 MB / 419.9 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003795/0.3912, allocations: 2.623 MB / 422.5 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005278/0.3965, allocations: 2.902 MB / 425.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01202/0.4086, allocations: 9.54 MB / 435 MB, free: 4.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/0.4087, allocations: 4 kB / 435 MB, free: 4.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.577e-06/0.4087, allocations: 0 / 435 MB, free: 4.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003375/0.409, allocations: 3.938 kB / 435 MB, free: 4.203 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.0159/0.4249, allocations: 6.029 MB / 441 MB, free: 14.1 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.149e-05/0.425, allocations: 12.03 kB / 441 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01183/0.4369, allocations: 2.537 MB / 443.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008467/0.4453, allocations: 3.921 MB / 447.5 MB, free: 7.559 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002694/0.4457, allocations: 300.5 kB / 447.8 MB, free: 7.262 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00161/0.4473, allocations: 451.5 kB / 448.2 MB, free: 6.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02353/0.4708, allocations: 12.41 MB / 460.6 MB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000146/0.471, allocations: 51.5 kB / 460.7 MB, free: 9.625 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005762/0.4716, allocations: 187.9 kB / 460.9 MB, free: 9.441 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003181/0.4748, allocations: 2.039 MB / 462.9 MB, free: 7.402 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02166/0.4965, allocations: 10.56 MB / 473.4 MB, free: 12.83 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05386/0.5504, allocations: 44.12 MB / 0.5054 GB, free: 15.43 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01317/0.5636, allocations: 4.841 MB / 0.5102 GB, free: 10.45 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002776/0.5664, allocations: 2.014 MB / 0.5121 GB, free: 8.422 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01196/0.5784, allocations: 7.117 MB / 0.5191 GB, free: 1.035 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.125e-05/0.5785, allocations: 59.5 kB / 0.5191 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 5.5e-06/0.5785, allocations: 0 / 0.5191 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.06862/0.6471, allocations: 19.65 MB / 0.5383 GB, free: 13.26 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.6473, allocations: 213.8 kB / 0.5385 GB, free: 13.01 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006085/0.6534, allocations: 4.489 MB / 0.5429 GB, free: 8.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000395/0.6538, allocations: 61.7 kB / 0.543 GB, free: 8.434 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002451/0.6563, allocations: 3.517 MB / 0.5464 GB, free: 4.867 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009995/0.6573, allocations: 0.8444 MB / 0.5472 GB, free: 4.012 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001772/0.6591, allocations: 1.337 MB / 0.5485 GB, free: 2.664 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.824e-05/0.6592, allocations: 301.1 kB / 0.5488 GB, free: 2.367 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003613/0.6628, allocations: 2.363 MB / 0.5511 GB, free: 0 / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006259/0.8351, allocations: 6.16 MB / 0.5571 GB, free: 142.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008971/0.8441, allocations: 9.18 MB / 0.5661 GB, free: 135.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001377/0.8443, allocations: 37.03 kB / 0.5661 GB, free: 135.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01709/0.8614, allocations: 9.55 MB / 0.5755 GB, free: 131.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.8615, allocations: 62.61 kB / 0.5755 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001552/0.8617, allocations: 131.8 kB / 0.5757 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004011/0.8657, allocations: 1.378 MB / 0.577 GB, free: 131.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004423/0.8701, allocations: 1.471 MB / 0.5784 GB, free: 131.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009735/0.8799, allocations: 8.476 MB / 0.5867 GB, free: 127 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004741/0.8846, allocations: 348.7 kB / 0.5871 GB, free: 126.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000862/0.8855, allocations: 391.6 kB / 0.5874 GB, free: 126.9 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (804): * Single equations (assignments): 800 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003368/0.8889, allocations: 2.497 MB / 0.5899 GB, free: 125.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006415/0.8896, allocations: 396.6 kB / 0.5902 GB, free: 125.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007205/0.8968, allocations: 4.122 MB / 0.5943 GB, free: 124.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.917e-05/0.8968, allocations: 27.22 kB / 0.5943 GB, free: 124.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/0.8969, allocations: 7.781 kB / 0.5943 GB, free: 124.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.093e-05/0.8969, allocations: 15.09 kB / 0.5943 GB, free: 124.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0157/0.9126, allocations: 10.13 MB / 0.6042 GB, free: 116.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.725e-05/0.9126, allocations: 4 kB / 0.6042 GB, free: 116.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001362/0.914, allocations: 331.5 kB / 0.6045 GB, free: 116.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003365/0.9174, allocations: 1.15 MB / 0.6057 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002169/0.9176, allocations: 43.94 kB / 0.6057 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008147/0.9258, allocations: 7.146 MB / 0.6127 GB, free: 107.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.9258, allocations: 6.25 kB / 0.6127 GB, free: 107.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009353/0.9352, allocations: 6.91 MB / 0.6194 GB, free: 101 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001413/0.9366, allocations: 0.7262 MB / 0.6201 GB, free: 100.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004499/0.9371, allocations: 43.83 kB / 0.6202 GB, free: 100.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001603/0.9387, allocations: 111.9 kB / 0.6203 GB, free: 100.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003227/0.939, allocations: 154.1 kB / 0.6204 GB, free: 99.94 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/0.9392, allocations: 67.98 kB / 0.6205 GB, free: 99.87 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003289/0.9425, allocations: 2.818 MB / 0.6233 GB, free: 97.05 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.9425, allocations: 0 / 0.6233 GB, free: 97.05 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004962/0.9474, allocations: 1.214 MB / 0.6244 GB, free: 95.84 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004827/0.948, allocations: 225.2 kB / 0.6247 GB, free: 95.62 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00714/0.9551, allocations: 5.777 MB / 0.6303 GB, free: 89.87 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/0.9551, allocations: 0 / 0.6303 GB, free: 89.87 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002107/0.9572, allocations: 1.865 MB / 0.6321 GB, free: 88 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002764/0.96, allocations: 0.5372 MB / 0.6326 GB, free: 87.48 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01509/0.9751, allocations: 11.58 MB / 0.644 GB, free: 75.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003111/0.9783, allocations: 3.841 MB / 0.6477 GB, free: 71.93 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001026/0.9793, allocations: 319.4 kB / 0.648 GB, free: 71.62 MB / 478.1 MB Notification: Performance of SimCode: time 6.71e-07/0.9793, allocations: 4 kB / 0.648 GB, free: 71.62 MB / 478.1 MB Notification: Performance of Templates: time 0.2904/1.27, allocations: 91.09 MB / 0.737 GB, free: 145.5 MB / 494.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches