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.001197/0.001197, allocations: 175 kB / 16.72 MB, free: 5.082 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.317/1.317, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0007637/0.0007636, allocations: 89.11 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002934/0.0002934, allocations: 12 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2319, allocations: 47.56 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.08007/0.312, allocations: 103.8 MB / 478.9 MB, free: 8.613 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.05047/0.3625, allocations: 21.46 MB / 0.4887 GB, free: 3.078 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01878/0.3814, allocations: 0.5026 MB / 0.4891 GB, free: 2.574 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.2152/0.5966, allocations: 5.338 MB / 0.4944 GB, free: 2.512 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03753/0.6342, allocations: 15.8 MB / 0.5098 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008369/0.6426, allocations: 1.779 MB / 0.5115 GB, free: 460 kB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.1193/0.7619, allocations: 99.46 MB / 0.6087 GB, free: 15.15 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02217/0.7841, allocations: 13.85 MB / 0.6222 GB, free: 5.188 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008465/0.7927, allocations: 3.251 MB / 0.6253 GB, free: 2.973 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008782/0.8015, allocations: 5.07 MB / 0.6303 GB, free: 15.31 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002594/0.8041, allocations: 340 kB / 0.6306 GB, free: 14.98 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005404/0.8096, allocations: 1.557 MB / 0.6321 GB, free: 13.74 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007111/0.8167, allocations: 4.243 MB / 0.6363 GB, free: 10.25 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008812/0.8256, allocations: 4.274 MB / 0.6405 GB, free: 7.242 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01927/0.8449, allocations: 13.65 MB / 0.6538 GB, free: 11.38 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.177e-06/0.8449, allocations: 4 kB / 0.6538 GB, free: 11.38 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.845, allocations: 0 / 0.6538 GB, free: 11.38 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0007199/0.8457, allocations: 0 / 0.6538 GB, free: 11.38 MB / 490.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.0256/0.8713, allocations: 9.254 MB / 0.6628 GB, free: 2.82 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.8714, allocations: 12.03 kB / 0.6628 GB, free: 2.809 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3642/1.236, allocations: 5.534 MB / 0.6683 GB, free: 211.4 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02189/1.257, allocations: 9.157 MB / 0.6772 GB, free: 207.5 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004333/1.258, allocations: 0.5223 MB / 0.6777 GB, free: 207.3 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002784/1.261, allocations: 0.7277 MB / 0.6784 GB, free: 207.1 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03591/1.297, allocations: 19.54 MB / 0.6975 GB, free: 189.8 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003253/1.297, allocations: 99.11 kB / 0.6976 GB, free: 189.7 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001365/1.298, allocations: 321 kB / 0.6979 GB, free: 189.4 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003383/1.302, allocations: 2.815 MB / 0.7006 GB, free: 186.6 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03208/1.334, allocations: 16.25 MB / 0.7165 GB, free: 170.4 MB / 490.8 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 0.08919/1.423, allocations: 74.65 MB / 0.7894 GB, free: 94.23 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02007/1.443, allocations: 8.5 MB / 0.7977 GB, free: 85.58 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006207/1.45, allocations: 4.754 MB / 0.8024 GB, free: 80.8 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02317/1.473, allocations: 15.41 MB / 0.8174 GB, free: 64.86 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.433e-05/1.473, allocations: 68.59 kB / 0.8175 GB, free: 64.78 MB / 490.8 MB Notification: Performance of pre-optimization done (n=319): time 6.792e-06/1.473, allocations: 0 / 0.8175 GB, free: 64.78 MB / 490.8 MB Notification: Performance of matching and sorting (n=419): time 0.1549/1.628, allocations: 50.6 MB / 0.8669 GB, free: 14.1 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/1.628, allocations: 410.7 kB / 0.8673 GB, free: 13.61 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01026/1.638, allocations: 7.6 MB / 0.8747 GB, free: 6.047 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00103/1.639, allocations: 89.7 kB / 0.8748 GB, free: 5.953 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002966/1.642, allocations: 5.624 MB / 0.8803 GB, free: 264 kB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.2062/1.848, allocations: 1.525 MB / 0.8818 GB, free: 190.8 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001128/1.85, allocations: 202.6 kB / 0.882 GB, free: 190.8 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0005522/1.85, allocations: 0.7425 MB / 0.8827 GB, free: 190.5 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008063/1.858, allocations: 5.08 MB / 0.8876 GB, free: 190.1 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01366/1.872, allocations: 10.16 MB / 0.8976 GB, free: 181.5 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01991/1.892, allocations: 16.08 MB / 0.9133 GB, free: 170 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004309/1.892, allocations: 54.44 kB / 0.9133 GB, free: 170 MB / 490.8 MB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.04746/1.94, allocations: 20.79 MB / 0.9336 GB, free: 159.2 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001453/1.94, allocations: 76 kB / 0.9337 GB, free: 159.1 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002673/1.94, allocations: 172 kB / 0.9339 GB, free: 159 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0182/1.959, allocations: 6.455 MB / 0.9402 GB, free: 152.9 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00741/1.966, allocations: 2.156 MB / 0.9423 GB, free: 150.7 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04078/2.007, allocations: 31.43 MB / 0.973 GB, free: 119.4 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009746/2.017, allocations: 0.6218 MB / 0.9736 GB, free: 118.8 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002115/2.019, allocations: 0.5374 MB / 0.9741 GB, free: 118.2 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 784 * 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 (1180): * Single equations (assignments): 1175 * 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.008653/2.028, allocations: 4.099 MB / 0.9781 GB, free: 114.1 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001653/2.029, allocations: 0.6932 MB / 0.9788 GB, free: 113.5 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02635/2.056, allocations: 13.82 MB / 0.9923 GB, free: 99.58 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.945e-05/2.056, allocations: 42.11 kB / 0.9923 GB, free: 99.54 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.331e-05/2.056, allocations: 24.75 kB / 0.9923 GB, free: 99.52 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.043e-05/2.056, allocations: 15.94 kB / 0.9923 GB, free: 99.5 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05443/2.11, allocations: 27.15 MB / 1.019 GB, free: 72.19 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.244e-05/2.11, allocations: 8 kB / 1.019 GB, free: 72.18 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002774/2.113, allocations: 0.5499 MB / 1.019 GB, free: 71.63 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01639/2.13, allocations: 5.954 MB / 1.025 GB, free: 65.66 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001246/2.131, allocations: 79.98 kB / 1.025 GB, free: 65.59 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03576/2.167, allocations: 28.19 MB / 1.053 GB, free: 37.25 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/2.167, allocations: 11.94 kB / 1.053 GB, free: 37.23 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2619/2.429, allocations: 19.95 MB / 1.072 GB, free: 172.8 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005352/2.434, allocations: 1.542 MB / 1.074 GB, free: 172.4 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003078/2.437, allocations: 81.94 kB / 1.074 GB, free: 172.4 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005467/2.443, allocations: 322.6 kB / 1.074 GB, free: 172.3 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00142/2.444, allocations: 294.9 kB / 1.075 GB, free: 172.3 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004534/2.444, allocations: 111 kB / 1.075 GB, free: 172.2 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.01038/2.455, allocations: 4.847 MB / 1.079 GB, free: 170.6 MB / 490.8 MB Notification: Performance of sort global known variables: time 4.91e-07/2.455, allocations: 3.688 kB / 1.079 GB, free: 170.6 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01218/2.467, allocations: 2.41 MB / 1.082 GB, free: 170.4 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 (292): * Single equations (assignments): 288 * 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%) 111} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001379/2.468, allocations: 283.4 kB / 1.082 GB, free: 170.2 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01956/2.488, allocations: 12.34 MB / 1.094 GB, free: 165.4 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.507e-05/2.488, allocations: 3.938 kB / 1.094 GB, free: 165.4 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007672/2.496, allocations: 5.087 MB / 1.099 GB, free: 163.2 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01644/2.512, allocations: 1.018 MB / 1.1 GB, free: 162.8 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04829/2.561, allocations: 26.55 MB / 1.126 GB, free: 141.9 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009777/2.57, allocations: 6.294 MB / 1.132 GB, free: 135.7 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002297/2.573, allocations: 495.4 kB / 1.133 GB, free: 135.2 MB / 490.8 MB Notification: Performance of SimCode: time 1.072e-06/2.573, allocations: 0 / 1.133 GB, free: 135.2 MB / 490.8 MB Notification: Performance of Templates: time 0.4419/3.015, allocations: 162.3 MB / 1.291 GB, free: 138 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/jenkins/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