Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000943/0.0009431, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.225/1.225, allocations: 226.6 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000775/0.0007752, allocations: 95.72 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002017/0.0002017, allocations: 11.92 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1838/0.184, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.07544/0.2595, allocations: 103.8 MB / 0.4993 GB, free: 3.809 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.2173/0.4769, allocations: 21.46 MB / 0.5202 GB, free: 15.91 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01893/0.4958, allocations: 0.5016 MB / 0.5207 GB, free: 15.91 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01423/0.5101, allocations: 5.339 MB / 0.5259 GB, free: 15.21 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03888/0.549, allocations: 15.76 MB / 0.5413 GB, free: 8.215 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007445/0.5565, allocations: 1.702 MB / 0.543 GB, free: 7.738 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.3855/0.942, allocations: 180.4 MB / 0.7191 GB, free: 114.6 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01679/0.9589, allocations: 12.75 MB / 0.7316 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005405/0.9643, allocations: 3.242 MB / 0.7348 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006329/0.9707, allocations: 5.047 MB / 0.7397 GB, free: 105.4 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.001949/0.9726, allocations: 340 kB / 0.74 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004009/0.9767, allocations: 1.321 MB / 0.7413 GB, free: 104 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.00463/0.9813, allocations: 4.223 MB / 0.7454 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.002935/0.9843, allocations: 1.846 MB / 0.7472 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.01079/0.9951, allocations: 13.61 MB / 0.7605 GB, free: 88.43 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.9951, allocations: 7.984 kB / 0.7605 GB, free: 88.42 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.873e-06/0.9951, allocations: 4 kB / 0.7605 GB, free: 88.41 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005337/0.9956, allocations: 0 / 0.7605 GB, free: 88.41 MB / 0.4948 GB 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.01867/1.014, allocations: 9.36 MB / 0.7697 GB, free: 79.75 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/1.014, allocations: 10.28 kB / 0.7697 GB, free: 79.74 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03927/1.054, allocations: 5.533 MB / 0.7751 GB, free: 74.39 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01659/1.07, allocations: 8.52 MB / 0.7834 GB, free: 68.34 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003737/1.071, allocations: 0.5225 MB / 0.7839 GB, free: 68.05 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002404/1.073, allocations: 0.7249 MB / 0.7846 GB, free: 67.57 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03109/1.104, allocations: 19.53 MB / 0.8037 GB, free: 52.77 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002523/1.105, allocations: 92.8 kB / 0.8038 GB, free: 52.71 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007981/1.105, allocations: 334.7 kB / 0.8041 GB, free: 52.61 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003174/1.108, allocations: 2.819 MB / 0.8069 GB, free: 50.34 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02741/1.136, allocations: 16.24 MB / 0.8227 GB, free: 39.29 MB / 0.4948 GB 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.413/1.549, allocations: 74.47 MB / 0.8954 GB, free: 211.3 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02047/1.569, allocations: 8.533 MB / 0.9038 GB, free: 210.6 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00549/1.575, allocations: 4.761 MB / 0.9084 GB, free: 210.6 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02187/1.597, allocations: 15.41 MB / 0.9235 GB, free: 203.7 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.967e-05/1.597, allocations: 71.72 kB / 0.9235 GB, free: 203.7 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=321): time 6.703e-06/1.597, allocations: 0 / 0.9235 GB, free: 203.7 MB / 0.5262 GB Notification: Performance of matching and sorting (n=428): time 0.1746/1.772, allocations: 54.9 MB / 0.9772 GB, free: 158.7 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/1.772, allocations: 410.7 kB / 0.9775 GB, free: 158.2 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01056/1.782, allocations: 7.509 MB / 0.9849 GB, free: 150.8 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.000986/1.783, allocations: 95.81 kB / 0.985 GB, free: 150.7 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.002629/1.786, allocations: 5.601 MB / 0.9904 GB, free: 145.1 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001603/1.788, allocations: 1.559 MB / 0.992 GB, free: 143.6 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006119/1.788, allocations: 205.1 kB / 0.9922 GB, free: 143.4 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.000347/1.789, allocations: 0.7321 MB / 0.9929 GB, free: 142.6 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005688/1.794, allocations: 5.18 MB / 0.9979 GB, free: 137.4 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007367/1.802, allocations: 10.23 MB / 1.008 GB, free: 125 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008392/1.81, allocations: 7.143 MB / 1.015 GB, free: 118 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.199e-05/1.81, allocations: 48 kB / 1.015 GB, free: 117.9 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1335) (initialization): time 0.03901/1.849, allocations: 21.16 MB / 1.036 GB, free: 96.83 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001584/1.849, allocations: 76 kB / 1.036 GB, free: 96.76 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000198/1.85, allocations: 176.1 kB / 1.036 GB, free: 96.59 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01882/1.868, allocations: 6.688 MB / 1.042 GB, free: 89.88 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007711/1.876, allocations: 2.152 MB / 1.044 GB, free: 87.73 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04139/1.918, allocations: 32.8 MB / 1.077 GB, free: 54.79 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007405/1.925, allocations: 0.6318 MB / 1.077 GB, free: 54.16 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001498/1.927, allocations: 0.5305 MB / 1.078 GB, free: 53.63 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 778 * 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],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[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],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1178): * Single equations (assignments): 1173 * 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%) 129} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006556/1.933, allocations: 4.105 MB / 1.082 GB, free: 49.51 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00161/1.935, allocations: 0.6865 MB / 1.082 GB, free: 48.82 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02707/1.962, allocations: 14.29 MB / 1.096 GB, free: 34.48 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.239e-05/1.962, allocations: 40 kB / 1.096 GB, free: 34.44 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.96e-05/1.962, allocations: 24 kB / 1.096 GB, free: 34.41 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.3e-05/1.962, allocations: 23.92 kB / 1.096 GB, free: 34.39 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2424/2.204, allocations: 28.22 MB / 1.124 GB, free: 201.5 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.111e-05/2.205, allocations: 3.969 kB / 1.124 GB, free: 201.5 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002638/2.207, allocations: 0.5929 MB / 1.125 GB, free: 201.5 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01738/2.225, allocations: 6.32 MB / 1.131 GB, free: 200.2 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007519/2.225, allocations: 79.98 kB / 1.131 GB, free: 200.2 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03493/2.26, allocations: 29.73 MB / 1.16 GB, free: 185.9 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/2.26, allocations: 15.91 kB / 1.16 GB, free: 185.9 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03162/2.292, allocations: 20.89 MB / 1.18 GB, free: 165.3 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003353/2.295, allocations: 1.568 MB / 1.182 GB, free: 164.1 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001045/2.296, allocations: 84.77 kB / 1.182 GB, free: 164 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003332/2.3, allocations: 331.4 kB / 1.182 GB, free: 163.7 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007357/2.301, allocations: 303.2 kB / 1.182 GB, free: 163.4 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003006/2.301, allocations: 112.7 kB / 1.183 GB, free: 163.3 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.005587/2.306, allocations: 4.791 MB / 1.187 GB, free: 158.5 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.6e-07/2.306, allocations: 0 / 1.187 GB, free: 158.5 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.007157/2.314, allocations: 2.434 MB / 1.19 GB, free: 156.1 MB / 0.5262 GB 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 (296): * Single equations (assignments): 292 * 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%) 116} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000659/2.314, allocations: 264.3 kB / 1.19 GB, free: 155.9 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.01456/2.329, allocations: 12.65 MB / 1.202 GB, free: 143.3 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/2.329, allocations: 3.969 kB / 1.202 GB, free: 143.3 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.006314/2.335, allocations: 5.334 MB / 1.207 GB, free: 138 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004971/2.34, allocations: 1.014 MB / 1.208 GB, free: 137 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03049/2.371, allocations: 26.62 MB / 1.234 GB, free: 110.6 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005309/2.376, allocations: 6.304 MB / 1.241 GB, free: 104.3 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001744/2.378, allocations: 499.4 kB / 1.241 GB, free: 103.8 MB / 0.5262 GB Notification: Performance of SimCode: time 6.32e-07/2.378, allocations: 7.938 kB / 1.241 GB, free: 103.8 MB / 0.5262 GB Notification: Performance of Templates: time 0.3551/2.733, allocations: 163.2 MB / 1.4 GB, free: 129.4 MB / 0.5262 GB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches