Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009675/0.0009674, allocations: 93.14 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001371/0.001371, allocations: 201.5 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.7 MB / 246.8 MB, free: 11.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002157/0.0002159, allocations: 4 kB / 307.7 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09528/0.09551, allocations: 51.53 MB / 359.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2715/0.3671, allocations: 108.1 MB / 467.4 MB, free: 14.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04761/0.4148, allocations: 20.88 MB / 488.2 MB, free: 9.645 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0182/0.433, allocations: 0.4987 MB / 488.7 MB, free: 9.145 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002511/0.4356, allocations: 0.7344 MB / 489.5 MB, free: 8.406 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008139/0.4437, allocations: 3.227 MB / 492.7 MB, free: 5.168 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00308/0.4468, allocations: 1.538 MB / 494.2 MB, free: 3.629 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02036/0.4672, allocations: 18.07 MB / 0.5003 GB, free: 1.527 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01618/0.4834, allocations: 10.64 MB / 0.5107 GB, free: 6.773 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005832/0.4893, allocations: 2.844 MB / 0.5135 GB, free: 3.918 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00693/0.4962, allocations: 4.606 MB / 0.518 GB, free: 15.3 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00162/0.4979, allocations: 292 kB / 0.5183 GB, free: 15.01 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003471/0.5014, allocations: 1.307 MB / 0.5195 GB, free: 13.7 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005079/0.5065, allocations: 3.829 MB / 0.5233 GB, free: 9.863 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006576/0.5131, allocations: 4.004 MB / 0.5272 GB, free: 5.828 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2346/0.7477, allocations: 13.13 MB / 0.54 GB, free: 27.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.7478, allocations: 0 / 0.54 GB, free: 27.5 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.7478, allocations: 0.8438 kB / 0.54 GB, free: 27.5 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004094/0.7482, allocations: 1.859 kB / 0.54 GB, free: 27.5 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.02265/0.7708, allocations: 8.282 MB / 0.5481 GB, free: 24.07 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.7709, allocations: 9.375 kB / 0.5481 GB, free: 24.07 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04978/0.8207, allocations: 5.397 MB / 0.5534 GB, free: 23.52 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02015/0.8409, allocations: 7.888 MB / 0.5611 GB, free: 22.42 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003787/0.8413, allocations: 448.3 kB / 0.5615 GB, free: 22.41 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003603/0.8449, allocations: 0.6103 MB / 0.5621 GB, free: 22.39 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03095/0.8759, allocations: 17.19 MB / 0.5789 GB, free: 16.96 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002729/0.8762, allocations: 103.9 kB / 0.579 GB, free: 16.94 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007515/0.877, allocations: 280.3 kB / 0.5793 GB, free: 16.94 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003906/0.8809, allocations: 2.857 MB / 0.5821 GB, free: 16.36 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02825/0.9091, allocations: 14.1 MB / 0.5958 GB, free: 10.4 MB / 446.1 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.09038/0.9996, allocations: 70.06 MB / 0.6642 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02159/1.021, allocations: 8.248 MB / 0.6723 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006487/1.028, allocations: 4.637 MB / 0.6768 GB, free: 6.133 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02288/1.051, allocations: 12.77 MB / 0.6893 GB, free: 9.246 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.191e-05/1.051, allocations: 65.77 kB / 0.6894 GB, free: 9.176 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=293): time 5.56e-06/1.051, allocations: 0 / 0.6894 GB, free: 9.176 MB / 0.5294 GB Notification: Performance of matching and sorting (n=359): time 0.4361/1.487, allocations: 53.31 MB / 0.7414 GB, free: 257.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001527/1.487, allocations: 400.8 kB / 0.7418 GB, free: 257.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0116/1.499, allocations: 7.266 MB / 0.7489 GB, free: 255 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001159/1.5, allocations: 81.08 kB / 0.749 GB, free: 254.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003529/1.503, allocations: 5.194 MB / 0.754 GB, free: 251 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001846/1.505, allocations: 1.336 MB / 0.7554 GB, free: 250 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001188/1.506, allocations: 0.8273 MB / 0.7562 GB, free: 249.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.693e-05/1.506, allocations: 301.1 kB / 0.7564 GB, free: 249.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007867/1.514, allocations: 4.714 MB / 0.761 GB, free: 247.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0122/1.527, allocations: 9.54 MB / 0.7704 GB, free: 239.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01985/1.546, allocations: 15 MB / 0.785 GB, free: 226.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001553/1.547, allocations: 44 kB / 0.7851 GB, free: 226.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.04292/1.59, allocations: 20.46 MB / 0.805 GB, free: 207.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.247e-05/1.59, allocations: 76.03 kB / 0.8051 GB, free: 207.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001314/1.59, allocations: 164 kB / 0.8053 GB, free: 207.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02081/1.611, allocations: 7.35 MB / 0.8125 GB, free: 200 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006682/1.617, allocations: 2.004 MB / 0.8144 GB, free: 198 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04106/1.659, allocations: 34.37 MB / 0.848 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009602/1.668, allocations: 0.6129 MB / 0.8486 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001975/1.67, allocations: 0.4922 MB / 0.8491 GB, free: 162.2 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 749 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.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 (1081): * Single equations (assignments): 1075 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,96,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.008459/1.679, allocations: 3.606 MB / 0.8526 GB, free: 158.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001898/1.681, allocations: 0.6479 MB / 0.8532 GB, free: 157.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02837/1.709, allocations: 13.94 MB / 0.8668 GB, free: 143.9 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.928e-05/1.709, allocations: 43.5 kB / 0.8669 GB, free: 143.8 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.696e-05/1.709, allocations: 23.94 kB / 0.8669 GB, free: 143.8 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.796e-05/1.709, allocations: 19.88 kB / 0.8669 GB, free: 143.8 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0477/1.757, allocations: 27.85 MB / 0.8941 GB, free: 115.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.557e-05/1.757, allocations: 8 kB / 0.8941 GB, free: 115.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002273/1.759, allocations: 467.3 kB / 0.8946 GB, free: 115 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02001/1.779, allocations: 7 MB / 0.9014 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001121/1.78, allocations: 63.98 kB / 0.9014 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03953/1.82, allocations: 33.25 MB / 0.9339 GB, free: 74.28 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.925e-06/1.82, allocations: 11.94 kB / 0.9339 GB, free: 74.27 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03421/1.854, allocations: 19.7 MB / 0.9532 GB, free: 54.38 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002813/1.857, allocations: 0.7074 MB / 0.9539 GB, free: 53.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001495/1.859, allocations: 65.23 kB / 0.9539 GB, free: 53.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003582/1.862, allocations: 335.4 kB / 0.9542 GB, free: 53.26 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001008/1.863, allocations: 250.7 kB / 0.9545 GB, free: 53.02 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002935/1.863, allocations: 101.2 kB / 0.9546 GB, free: 52.92 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006549/1.87, allocations: 4.642 MB / 0.9591 GB, free: 48.31 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.01e-07/1.87, allocations: 0 / 0.9591 GB, free: 48.31 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01028/1.88, allocations: 2.207 MB / 0.9613 GB, free: 46.11 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (231): * Single equations (assignments): 225 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,90,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008342/1.881, allocations: 219 kB / 0.9615 GB, free: 45.89 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01755/1.899, allocations: 12.01 MB / 0.9732 GB, free: 33.84 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/1.899, allocations: 0 / 0.9732 GB, free: 33.84 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.008764/1.908, allocations: 5.259 MB / 0.9783 GB, free: 28.54 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01256/1.92, allocations: 0.9596 MB / 0.9793 GB, free: 27.59 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2489/2.169, allocations: 24.31 MB / 1.003 GB, free: 234.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007524/2.177, allocations: 5.72 MB / 1.009 GB, free: 233.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.007032/2.184, allocations: 2.699 MB / 1.011 GB, free: 233.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001309/2.185, allocations: 402.4 kB / 1.012 GB, free: 233.7 MB / 0.5606 GB Notification: Performance of SimCode: time 2.475e-06/2.185, allocations: 0 / 1.012 GB, free: 233.7 MB / 0.5606 GB Notification: Performance of Templates: time 0.1527/2.338, allocations: 97.24 MB / 1.107 GB, free: 152.7 MB / 0.5606 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches