Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001264/0.001264, allocations: 110.9 kB / 18.41 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001079/0.001079, allocations: 200.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001163, allocations: 60.53 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.109, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.243/0.3521, allocations: 19.37 MB / 378.3 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01235/0.3645, allocations: 5.982 MB / 384.3 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004824/0.3694, allocations: 160.1 kB / 384.4 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01157/0.381, allocations: 5.834 MB / 390.2 MB, free: 5.012 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01251/0.3936, allocations: 3.304 MB / 393.5 MB, free: 3.039 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004376/0.398, allocations: 1.569 MB / 395.1 MB, free: 1.984 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02216/0.4202, allocations: 12.67 MB / 407.8 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01207/0.4323, allocations: 7.652 MB / 415.4 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007375/0.4397, allocations: 3.544 MB / 419 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007862/0.4476, allocations: 4.736 MB / 423.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0029/0.4506, allocations: 0.7109 MB / 424.4 MB, free: 9.328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005429/0.456, allocations: 1.662 MB / 426.1 MB, free: 7.664 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005993/0.462, allocations: 4.174 MB / 430.3 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009131/0.4712, allocations: 4.448 MB / 434.7 MB, free: 15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01724/0.4885, allocations: 13.6 MB / 448.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.4885, allocations: 0 / 448.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4885, allocations: 0 / 448.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005524/0.4891, allocations: 0 / 448.3 MB, free: 1.367 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02854/0.5176, allocations: 9.641 MB / 457.9 MB, free: 7.637 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.501e-05/0.5177, allocations: 12.03 kB / 458 MB, free: 7.625 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0403/0.558, allocations: 5.232 MB / 463.2 MB, free: 2.375 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02172/0.5798, allocations: 7.905 MB / 471.1 MB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003822/0.5802, allocations: 423.6 kB / 471.5 MB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002079/0.5823, allocations: 0.5892 MB / 472.1 MB, free: 9.398 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02944/0.6118, allocations: 16.55 MB / 488.7 MB, free: 7.789 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000302/0.6121, allocations: 91.17 kB / 488.7 MB, free: 7.699 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009174/0.613, allocations: 267.8 kB / 489 MB, free: 7.438 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004242/0.6173, allocations: 2.772 MB / 491.8 MB, free: 4.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02897/0.6463, allocations: 13.63 MB / 0.4936 GB, free: 7.008 MB / 414.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.4768/1.123, allocations: 67.71 MB / 0.5597 GB, free: 97.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01923/1.142, allocations: 7.914 MB / 0.5674 GB, free: 95.98 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005107/1.148, allocations: 4.518 MB / 0.5718 GB, free: 94.07 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01836/1.166, allocations: 12.41 MB / 0.5839 GB, free: 88.34 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.55e-05/1.166, allocations: 66.94 kB / 0.584 GB, free: 88.29 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 6.372e-06/1.166, allocations: 0 / 0.584 GB, free: 88.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1592/1.325, allocations: 50.1 MB / 0.6329 GB, free: 45.55 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/1.325, allocations: 402.1 kB / 0.6333 GB, free: 45.07 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00918/1.335, allocations: 7.114 MB / 0.6403 GB, free: 37.97 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009949/1.336, allocations: 81.53 kB / 0.6403 GB, free: 37.89 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002843/1.339, allocations: 5.011 MB / 0.6452 GB, free: 32.88 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001761/1.34, allocations: 1.262 MB / 0.6465 GB, free: 31.62 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002747/1.343, allocations: 1.856 MB / 0.6483 GB, free: 29.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.336e-05/1.343, allocations: 305.1 kB / 0.6486 GB, free: 29.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005439/1.349, allocations: 4.543 MB / 0.653 GB, free: 24.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008369/1.357, allocations: 9.269 MB / 0.6621 GB, free: 13.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01515/1.372, allocations: 14.54 MB / 0.6763 GB, free: 12.58 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001226/1.372, allocations: 48 kB / 0.6763 GB, free: 12.53 MB / 462.1 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03996/1.412, allocations: 19.75 MB / 0.6956 GB, free: 8.73 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001301/1.412, allocations: 79.98 kB / 0.6957 GB, free: 8.652 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002205/1.413, allocations: 160.6 kB / 0.6958 GB, free: 8.496 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02098/1.434, allocations: 7.063 MB / 0.7027 GB, free: 1.418 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2362/1.67, allocations: 1.924 MB / 0.7046 GB, free: 150.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04676/1.717, allocations: 35.31 MB / 0.7391 GB, free: 136.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008015/1.725, allocations: 0.5845 MB / 0.7396 GB, free: 136 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001563/1.726, allocations: 0.4924 MB / 0.7401 GB, free: 136 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * Number of states: 0 () * Number of discrete variables: 66 (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 (1048): * Single equations (assignments): 1042 * 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,93,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.005445/1.732, allocations: 3.468 MB / 0.7435 GB, free: 134.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001338/1.733, allocations: 0.6318 MB / 0.7441 GB, free: 134.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02369/1.757, allocations: 13.32 MB / 0.7571 GB, free: 128.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.864e-05/1.757, allocations: 39.94 kB / 0.7572 GB, free: 128.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.401e-05/1.757, allocations: 20 kB / 0.7572 GB, free: 128.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.83e-05/1.757, allocations: 11.95 kB / 0.7572 GB, free: 128.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04508/1.802, allocations: 26.56 MB / 0.7831 GB, free: 101.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-05/1.802, allocations: 8 kB / 0.7832 GB, free: 101.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001947/1.804, allocations: 423.3 kB / 0.7836 GB, free: 101.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01769/1.822, allocations: 6.646 MB / 0.79 GB, free: 94.87 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009176/1.823, allocations: 60 kB / 0.7901 GB, free: 94.81 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03832/1.861, allocations: 33.99 MB / 0.8233 GB, free: 60.68 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/1.861, allocations: 7.938 kB / 0.8233 GB, free: 60.68 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02981/1.891, allocations: 18.78 MB / 0.8417 GB, free: 41.97 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002571/1.894, allocations: 0.6875 MB / 0.8423 GB, free: 41.27 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001348/1.895, allocations: 60 kB / 0.8424 GB, free: 41.21 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003335/1.898, allocations: 303.5 kB / 0.8427 GB, free: 40.91 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009687/1.899, allocations: 251 kB / 0.8429 GB, free: 40.66 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002852/1.9, allocations: 88.44 kB / 0.843 GB, free: 40.58 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006315/1.906, allocations: 4.551 MB / 0.8474 GB, free: 36.05 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.41e-07/1.906, allocations: 4 kB / 0.8474 GB, free: 36.05 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009523/1.916, allocations: 2.119 MB / 0.8495 GB, free: 33.94 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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,87,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.0007497/1.916, allocations: 214.8 kB / 0.8497 GB, free: 33.74 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01713/1.934, allocations: 11.63 MB / 0.8611 GB, free: 22.11 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.845e-05/1.934, allocations: 0 / 0.8611 GB, free: 22.11 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008491/1.942, allocations: 5.008 MB / 0.866 GB, free: 17.05 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007221/1.949, allocations: 0.9844 MB / 0.8669 GB, free: 16.07 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2558/2.205, allocations: 19.52 MB / 0.886 GB, free: 143.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0105/2.216, allocations: 5.523 MB / 0.8914 GB, free: 143 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.008331/2.224, allocations: 2.607 MB / 0.8939 GB, free: 142.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002086/2.226, allocations: 389.8 kB / 0.8943 GB, free: 142.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.413e-06/2.226, allocations: 3.828 kB / 0.8943 GB, free: 142.9 MB / 478.1 MB Notification: Performance of Templates: time 0.1385/2.365, allocations: 90.95 MB / 0.9831 GB, free: 69.38 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches