Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001198/0.001198, allocations: 177.9 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.327/1.327, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007064/0.0007064, allocations: 86.36 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000343/0.000343, allocations: 12 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2308, allocations: 47.58 MB / 374.6 MB, free: 45.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.03225/0.263, allocations: 50.26 MB / 424.8 MB, free: 14.46 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0255/0.2886, allocations: 11.3 MB / 436.1 MB, free: 3.125 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008391/0.297, allocations: 239.4 kB / 436.4 MB, free: 2.891 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007841/0.3049, allocations: 2.578 MB / 438.9 MB, free: 308 kB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02038/0.3253, allocations: 7.711 MB / 446.6 MB, free: 8.559 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003781/0.3291, allocations: 0.9126 MB / 447.6 MB, free: 7.645 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.03944/0.3686, allocations: 35.71 MB / 483.3 MB, free: 3.887 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009542/0.3782, allocations: 6.587 MB / 489.9 MB, free: 13.23 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003274/0.3815, allocations: 1.65 MB / 491.5 MB, free: 11.58 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003804/0.3853, allocations: 2.551 MB / 494.1 MB, free: 9.02 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00102/0.3864, allocations: 184 kB / 494.2 MB, free: 8.84 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002673/0.3891, allocations: 1.186 MB / 495.4 MB, free: 7.652 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002224/0.3913, allocations: 2.194 MB / 497.6 MB, free: 5.453 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009946/0.3923, allocations: 1.034 MB / 498.6 MB, free: 4.41 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2057/0.598, allocations: 7.422 MB / 0.4942 GB, free: 41.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.598, allocations: 2.984 kB / 0.4942 GB, free: 41.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.598, allocations: 0 / 0.4942 GB, free: 41.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003339/0.5984, allocations: 0.5 kB / 0.4942 GB, free: 41.52 MB / 378.7 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.01346/0.6119, allocations: 4.996 MB / 0.4991 GB, free: 39.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.6119, allocations: 8.156 kB / 0.4991 GB, free: 39.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01167/0.6236, allocations: 2.595 MB / 0.5016 GB, free: 39.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00965/0.6333, allocations: 3.785 MB / 0.5053 GB, free: 38.4 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000302/0.6336, allocations: 307.3 kB / 0.5056 GB, free: 38.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001733/0.6354, allocations: 436.6 kB / 0.506 GB, free: 38.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02433/0.6597, allocations: 12.4 MB / 0.5181 GB, free: 36.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000142/0.6599, allocations: 51.5 kB / 0.5182 GB, free: 36.33 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004919/0.6604, allocations: 192.3 kB / 0.5184 GB, free: 36.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002852/0.6633, allocations: 2.035 MB / 0.5204 GB, free: 36.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01919/0.6825, allocations: 10.54 MB / 0.5307 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04778/0.7303, allocations: 44.35 MB / 0.574 GB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01218/0.7425, allocations: 4.878 MB / 0.5787 GB, free: 9.066 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002878/0.7455, allocations: 2.005 MB / 0.5807 GB, free: 7.859 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0122/0.7577, allocations: 7.115 MB / 0.5876 GB, free: 1.289 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.166e-05/0.7578, allocations: 55.52 kB / 0.5877 GB, free: 1.223 MB / 394.7 MB Notification: Performance of pre-optimization done (n=179): time 6.913e-06/0.7578, allocations: 0 / 0.5877 GB, free: 1.223 MB / 394.7 MB Notification: Performance of matching and sorting (n=223): time 0.06814/0.826, allocations: 19.73 MB / 0.607 GB, free: 13.51 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.8261, allocations: 204.2 kB / 0.6072 GB, free: 13.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005883/0.832, allocations: 4.462 MB / 0.6115 GB, free: 8.793 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003826/0.8324, allocations: 57.7 kB / 0.6116 GB, free: 8.73 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002254/0.8347, allocations: 3.522 MB / 0.615 GB, free: 5.227 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008076/0.8355, allocations: 0.842 MB / 0.6158 GB, free: 4.391 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002556/0.8357, allocations: 132 kB / 0.616 GB, free: 4.262 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003835/0.8361, allocations: 0.5828 MB / 0.6165 GB, free: 3.676 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003454/0.8396, allocations: 2.336 MB / 0.6188 GB, free: 1.336 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005979/0.8456, allocations: 6.141 MB / 0.6248 GB, free: 9.391 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005347/0.851, allocations: 3.713 MB / 0.6284 GB, free: 5.797 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.454e-05/0.851, allocations: 40 kB / 0.6285 GB, free: 5.758 MB / 442.7 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01612/0.8671, allocations: 9.491 MB / 0.6377 GB, free: 13.07 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001083/0.8673, allocations: 64 kB / 0.6378 GB, free: 13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001434/0.8675, allocations: 133.9 kB / 0.6379 GB, free: 12.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004189/0.8716, allocations: 1.39 MB / 0.6393 GB, free: 11.48 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004635/0.8763, allocations: 1.475 MB / 0.6407 GB, free: 10.13 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01129/0.8876, allocations: 7.963 MB / 0.6485 GB, free: 2.105 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004691/0.8923, allocations: 347.5 kB / 0.6488 GB, free: 1.766 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009904/0.8934, allocations: 384 kB / 0.6492 GB, free: 1.391 MB / 458.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004595/0.898, allocations: 2.492 MB / 0.6516 GB, free: 15.02 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009134/0.8989, allocations: 406.8 kB / 0.652 GB, free: 14.62 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008491/0.9074, allocations: 4.122 MB / 0.656 GB, free: 10.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.854e-05/0.9075, allocations: 26.58 kB / 0.6561 GB, free: 10.48 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.696e-05/0.9075, allocations: 8 kB / 0.6561 GB, free: 10.47 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.559e-05/0.9075, allocations: 7.969 kB / 0.6561 GB, free: 10.46 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02057/0.9281, allocations: 10.36 MB / 0.6662 GB, free: 52 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-05/0.9281, allocations: 4 kB / 0.6662 GB, free: 48 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2111/1.139, allocations: 343.4 kB / 0.6665 GB, free: 127 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003632/1.143, allocations: 1.15 MB / 0.6677 GB, free: 127 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000202/1.143, allocations: 47.95 kB / 0.6677 GB, free: 127 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00844/1.152, allocations: 6.652 MB / 0.6742 GB, free: 125.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/1.152, allocations: 8.062 kB / 0.6742 GB, free: 125.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01154/1.163, allocations: 6.886 MB / 0.6809 GB, free: 125.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001851/1.165, allocations: 0.7411 MB / 0.6817 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004402/1.165, allocations: 45.05 kB / 0.6817 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001501/1.167, allocations: 114.1 kB / 0.6818 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003228/1.167, allocations: 147.3 kB / 0.6819 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001624/1.167, allocations: 64.03 kB / 0.682 GB, free: 125 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003822/1.171, allocations: 2.793 MB / 0.6847 GB, free: 124.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.171, allocations: 0 / 0.6847 GB, free: 124.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004665/1.176, allocations: 1.215 MB / 0.6859 GB, free: 124.8 MB / 474.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004612/1.176, allocations: 211.4 kB / 0.6861 GB, free: 124.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007376/1.184, allocations: 5.71 MB / 0.6917 GB, free: 124.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/1.184, allocations: 0 / 0.6917 GB, free: 124.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002167/1.186, allocations: 1.872 MB / 0.6935 GB, free: 124.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002904/1.189, allocations: 0.5164 MB / 0.694 GB, free: 124.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01629/1.205, allocations: 13.58 MB / 0.7073 GB, free: 119.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003275/1.209, allocations: 3.847 MB / 0.7111 GB, free: 116.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001091/1.21, allocations: 318.2 kB / 0.7114 GB, free: 116.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.102e-06/1.21, allocations: 0 / 0.7114 GB, free: 116.5 MB / 474.7 MB Notification: Performance of Templates: time 0.09087/1.301, allocations: 89.73 MB / 0.799 GB, free: 28.11 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches