Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_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.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003054/0.003062, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.715/3.715, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001792/0.001792, allocations: 94.78 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006161/0.000616, allocations: 12 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.151, allocations: 47.59 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.6794/0.8305, allocations: 97.88 MB / 472.4 MB, free: 10.33 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.116/0.9466, allocations: 22.5 MB / 494.9 MB, free: 3.77 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03718/0.9839, allocations: 0.4948 MB / 495.4 MB, free: 3.273 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.03088/1.015, allocations: 4.899 MB / 0.4886 GB, free: 14.35 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.09478/1.11, allocations: 13.88 MB / 0.5022 GB, free: 444 kB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01714/1.127, allocations: 1.69 MB / 0.5038 GB, free: 14.75 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.8392/1.966, allocations: 78.12 MB / 0.5801 GB, free: 24.93 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04025/2.007, allocations: 12.68 MB / 0.5925 GB, free: 15.93 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01079/2.017, allocations: 2.637 MB / 0.595 GB, free: 14.24 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01111/2.029, allocations: 3.546 MB / 0.5985 GB, free: 11.73 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004127/2.033, allocations: 341.5 kB / 0.5988 GB, free: 11.4 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008485/2.041, allocations: 1.302 MB / 0.6001 GB, free: 10.32 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.01035/2.052, allocations: 3.92 MB / 0.6039 GB, free: 7.465 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006462/2.058, allocations: 1.881 MB / 0.6058 GB, free: 6.793 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03308/2.091, allocations: 14.33 MB / 0.6198 GB, free: 10.35 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/2.092, allocations: 0 / 0.6198 GB, free: 10.35 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.968e-06/2.092, allocations: 0 / 0.6198 GB, free: 10.35 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008076/2.092, allocations: 3.938 kB / 0.6198 GB, free: 10.35 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.07389/2.166, allocations: 10.17 MB / 0.6297 GB, free: 1.008 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.782e-05/2.167, allocations: 8.031 kB / 0.6297 GB, free: 1 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.9595/3.126, allocations: 30.06 MB / 0.6591 GB, free: 4.836 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0561/3.182, allocations: 10.19 MB / 0.669 GB, free: 13.68 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001279/3.184, allocations: 0.5188 MB / 0.6695 GB, free: 13.39 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00614/3.19, allocations: 0.7257 MB / 0.6702 GB, free: 12.91 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1025/3.292, allocations: 19.43 MB / 0.6892 GB, free: 14.16 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001112/3.293, allocations: 94.52 kB / 0.6893 GB, free: 14.1 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005473/3.299, allocations: 332 kB / 0.6896 GB, free: 14.01 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01302/3.312, allocations: 2.814 MB / 0.6924 GB, free: 11.74 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09326/3.405, allocations: 15.81 MB / 0.7078 GB, free: 0.9375 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.124/4.529, allocations: 73.08 MB / 0.7792 GB, free: 141.2 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05758/4.587, allocations: 8.082 MB / 0.7871 GB, free: 136 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05399/4.641, allocations: 14.37 MB / 0.8011 GB, free: 121.3 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002516/4.642, allocations: 68.53 kB / 0.8012 GB, free: 121.2 MB / 490.8 MB Notification: Performance of pre-optimization done (n=308): time 2.994e-05/4.642, allocations: 2.297 kB / 0.8012 GB, free: 121.2 MB / 490.8 MB Notification: Performance of matching and sorting (n=408): time 0.4502/5.092, allocations: 48.33 MB / 0.8484 GB, free: 73.04 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002292/5.092, allocations: 410.5 kB / 0.8488 GB, free: 72.55 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03284/5.125, allocations: 8.401 MB / 0.857 GB, free: 64.16 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001695/5.127, allocations: 87.11 kB / 0.857 GB, free: 64.07 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.008398/5.135, allocations: 5.448 MB / 0.8624 GB, free: 58.61 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003876/5.139, allocations: 1.481 MB / 0.8638 GB, free: 57.14 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002566/5.142, allocations: 184.9 kB / 0.864 GB, free: 56.96 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001474/5.144, allocations: 0.6993 MB / 0.8647 GB, free: 56.25 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0176/5.161, allocations: 4.313 MB / 0.8689 GB, free: 51.93 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02287/5.184, allocations: 9.27 MB / 0.8779 GB, free: 40.23 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02223/5.206, allocations: 6.205 MB / 0.884 GB, free: 34.01 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002524/5.207, allocations: 52 kB / 0.884 GB, free: 33.96 MB / 490.8 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.08894/5.296, allocations: 17.27 MB / 0.9009 GB, free: 16.65 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002163/5.296, allocations: 76 kB / 0.901 GB, free: 16.57 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003871/5.296, allocations: 172 kB / 0.9011 GB, free: 16.41 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04305/5.34, allocations: 5.031 MB / 0.9061 GB, free: 11.37 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01755/5.357, allocations: 1.949 MB / 0.908 GB, free: 9.414 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6462/6.003, allocations: 27.88 MB / 0.9352 GB, free: 168 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02021/6.024, allocations: 0.5404 MB / 0.9357 GB, free: 167.9 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003947/6.028, allocations: 0.5125 MB / 0.9362 GB, free: 167.8 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 780 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.body.sphereColor[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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1050): * Single equations (assignments): 1045 * Array equations: 4 * 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 {(3,100.0%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0181/6.046, allocations: 4.092 MB / 0.9402 GB, free: 166.2 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003778/6.05, allocations: 0.7097 MB / 0.9409 GB, free: 166.2 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07152/6.121, allocations: 11.42 MB / 0.9521 GB, free: 162.1 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001324/6.122, allocations: 43.28 kB / 0.9521 GB, free: 162.1 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000133/6.122, allocations: 21 kB / 0.9521 GB, free: 162.1 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001317/6.122, allocations: 18.8 kB / 0.9521 GB, free: 162.1 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1387/6.261, allocations: 24.7 MB / 0.9763 GB, free: 148.6 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001139/6.261, allocations: 8 kB / 0.9763 GB, free: 148.6 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008807/6.27, allocations: 0.5265 MB / 0.9768 GB, free: 148 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04239/6.312, allocations: 4.453 MB / 0.9811 GB, free: 143.6 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001686/6.314, allocations: 73.02 kB / 0.9812 GB, free: 143.6 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1047/6.418, allocations: 24.52 MB / 1.005 GB, free: 119.1 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.911e-05/6.419, allocations: 15.89 kB / 1.005 GB, free: 119.1 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07851/6.497, allocations: 18.29 MB / 1.023 GB, free: 100.8 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009121/6.506, allocations: 1.462 MB / 1.024 GB, free: 99.34 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004332/6.511, allocations: 75.98 kB / 1.025 GB, free: 99.27 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01113/6.522, allocations: 263.4 kB / 1.025 GB, free: 99.02 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002993/6.525, allocations: 281.2 kB / 1.025 GB, free: 98.74 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001628/6.527, allocations: 112 kB / 1.025 GB, free: 98.63 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.02075/6.547, allocations: 5.503 MB / 1.031 GB, free: 93.14 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.002e-06/6.548, allocations: 4 kB / 1.031 GB, free: 93.14 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.02259/6.57, allocations: 2.24 MB / 1.033 GB, free: 90.91 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 2 (Inertia.phi,Inertia.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 (284): * Single equations (assignments): 280 * 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 {(3,77.8%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002582/6.573, allocations: 273.7 kB / 1.033 GB, free: 90.66 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.03783/6.611, allocations: 10.86 MB / 1.044 GB, free: 79.86 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.31e-05/6.611, allocations: 4 kB / 1.044 GB, free: 79.86 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01794/6.629, allocations: 4.559 MB / 1.048 GB, free: 75.27 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01445/6.643, allocations: 1.06 MB / 1.049 GB, free: 74.24 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.116/6.759, allocations: 25.91 MB / 1.074 GB, free: 48.44 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02513/6.785, allocations: 6.573 MB / 1.081 GB, free: 41.83 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005109/6.79, allocations: 0.4955 MB / 1.081 GB, free: 41.33 MB / 490.8 MB Notification: Performance of SimCode: time 2.645e-06/6.79, allocations: 4 kB / 1.081 GB, free: 41.33 MB / 490.8 MB Notification: Performance of Templates: time 1.016/7.806, allocations: 156.2 MB / 1.234 GB, free: 55.04 MB / 490.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_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/Engine1b_analytic/Engine1b_analytic.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches