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.0008429/0.0008429, allocations: 92.28 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.0009776/0.0009777, allocations: 206.3 kB / 18.29 MB, free: 5.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.7 MB / 246.8 MB, free: 11.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002254/0.0002255, allocations: 8 kB / 307.7 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1056, allocations: 51.53 MB / 359.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2712/0.3769, allocations: 100.2 MB / 459.5 MB, free: 6.484 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0442/0.4211, allocations: 19.58 MB / 479.1 MB, free: 2.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02326/0.4444, allocations: 470.8 kB / 479.5 MB, free: 2.379 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003604/0.4481, allocations: 0.6995 MB / 480.2 MB, free: 1.676 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01007/0.4582, allocations: 3.139 MB / 483.4 MB, free: 14.53 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003222/0.4614, allocations: 1.459 MB / 484.8 MB, free: 13.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02164/0.4831, allocations: 17.63 MB / 0.4907 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01592/0.499, allocations: 10.16 MB / 0.5006 GB, free: 1.148 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006308/0.5054, allocations: 2.693 MB / 0.5032 GB, free: 14.45 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009114/0.5145, allocations: 4.431 MB / 0.5076 GB, free: 10 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001833/0.5164, allocations: 276 kB / 0.5078 GB, free: 9.73 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003742/0.5202, allocations: 1.291 MB / 0.5091 GB, free: 8.438 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005233/0.5254, allocations: 3.689 MB / 0.5127 GB, free: 4.738 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006115/0.5316, allocations: 3.845 MB / 0.5164 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01264/0.5442, allocations: 12.66 MB / 0.5288 GB, free: 4.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.5443, allocations: 0 / 0.5288 GB, free: 4.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.5443, allocations: 0 / 0.5288 GB, free: 4.16 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000298/0.5446, allocations: 0 / 0.5288 GB, free: 4.16 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.248/0.7926, allocations: 7.979 MB / 0.5366 GB, free: 45.69 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.7927, allocations: 9.375 kB / 0.5366 GB, free: 45.69 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05265/0.8453, allocations: 5.35 MB / 0.5418 GB, free: 45.16 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01922/0.8646, allocations: 7.715 MB / 0.5494 GB, free: 44.1 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000381/0.865, allocations: 425.5 kB / 0.5498 GB, free: 44.09 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001883/0.8669, allocations: 0.5869 MB / 0.5503 GB, free: 44.07 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02626/0.8931, allocations: 16.63 MB / 0.5666 GB, free: 38.64 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002445/0.8934, allocations: 100.2 kB / 0.5667 GB, free: 38.62 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006512/0.8941, allocations: 263.8 kB / 0.5669 GB, free: 38.62 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003678/0.8978, allocations: 2.766 MB / 0.5696 GB, free: 37.74 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02307/0.9209, allocations: 13.7 MB / 0.583 GB, free: 25.72 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.08133/1.002, allocations: 68.11 MB / 0.6495 GB, free: 4.457 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02065/1.023, allocations: 7.949 MB / 0.6573 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005826/1.029, allocations: 4.514 MB / 0.6617 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01964/1.048, allocations: 12.41 MB / 0.6738 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001209/1.049, allocations: 64.5 kB / 0.6739 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=280): time 5.59e-06/1.049, allocations: 7.375 kB / 0.6739 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of matching and sorting (n=339): time 0.1941/1.243, allocations: 50.99 MB / 0.7237 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001911/1.243, allocations: 398 kB / 0.7241 GB, free: 8.043 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0119/1.255, allocations: 7.113 MB / 0.731 GB, free: 0.957 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007861/1.256, allocations: 73.7 kB / 0.7311 GB, free: 0.8789 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.3205/1.576, allocations: 5.023 MB / 0.736 GB, free: 255.8 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001618/1.578, allocations: 1.259 MB / 0.7372 GB, free: 255.1 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001505/1.579, allocations: 0.8082 MB / 0.738 GB, free: 255.1 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 3.963e-05/1.579, allocations: 302.9 kB / 0.7383 GB, free: 254.8 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007667/1.587, allocations: 4.547 MB / 0.7427 GB, free: 253.3 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01084/1.598, allocations: 9.266 MB / 0.7518 GB, free: 245.5 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01576/1.614, allocations: 14.54 MB / 0.766 GB, free: 234.9 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001832/1.614, allocations: 47.16 kB / 0.766 GB, free: 234.9 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03978/1.654, allocations: 19.76 MB / 0.7853 GB, free: 227.6 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001146/1.654, allocations: 76 kB / 0.7854 GB, free: 227.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001651/1.654, allocations: 163.9 kB / 0.7855 GB, free: 227.4 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02007/1.674, allocations: 7.07 MB / 0.7924 GB, free: 221.3 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005964/1.68, allocations: 1.93 MB / 0.7943 GB, free: 219.3 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0393/1.72, allocations: 33.22 MB / 0.8268 GB, free: 185.7 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007601/1.727, allocations: 0.5889 MB / 0.8274 GB, free: 185.1 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001125/1.728, allocations: 0.4899 MB / 0.8278 GB, free: 184.6 MB / 0.5607 GB 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.005671/1.734, allocations: 3.466 MB / 0.8312 GB, free: 181.1 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001298/1.735, allocations: 0.6364 MB / 0.8318 GB, free: 180.5 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02631/1.762, allocations: 13.32 MB / 0.8448 GB, free: 167.1 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.769e-05/1.762, allocations: 41.66 kB / 0.8449 GB, free: 167.1 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.198e-05/1.762, allocations: 20 kB / 0.8449 GB, free: 167 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.14e-05/1.762, allocations: 15.94 kB / 0.8449 GB, free: 167 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04606/1.808, allocations: 26.71 MB / 0.871 GB, free: 139.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-05/1.808, allocations: 8 kB / 0.871 GB, free: 139.8 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002054/1.81, allocations: 420.8 kB / 0.8714 GB, free: 139.4 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01977/1.83, allocations: 6.675 MB / 0.8779 GB, free: 132.7 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000857/1.831, allocations: 63.98 kB / 0.878 GB, free: 132.7 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03789/1.869, allocations: 31.98 MB / 0.9092 GB, free: 100.3 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.663e-06/1.869, allocations: 15.94 kB / 0.9092 GB, free: 100.3 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03305/1.902, allocations: 18.78 MB / 0.9276 GB, free: 81.29 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002424/1.904, allocations: 0.688 MB / 0.9282 GB, free: 80.57 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001775/1.906, allocations: 63.98 kB / 0.9283 GB, free: 80.51 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004331/1.91, allocations: 316.7 kB / 0.9286 GB, free: 80.2 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001053/1.911, allocations: 242.5 kB / 0.9288 GB, free: 79.96 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002722/1.912, allocations: 93.16 kB / 0.9289 GB, free: 79.88 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.006549/1.918, allocations: 4.551 MB / 0.9334 GB, free: 75.35 MB / 0.5607 GB Notification: Performance of sort global known variables: time 2.91e-07/1.918, allocations: 0 / 0.9334 GB, free: 75.35 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.008689/1.927, allocations: 2.122 MB / 0.9355 GB, free: 73.23 MB / 0.5607 GB 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.0008345/1.928, allocations: 212 kB / 0.9357 GB, free: 73.03 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01664/1.944, allocations: 11.58 MB / 0.947 GB, free: 61.41 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.487e-05/1.945, allocations: 4 kB / 0.947 GB, free: 61.41 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.008123/1.953, allocations: 5 MB / 0.9518 GB, free: 56.36 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0121/1.965, allocations: 0.9253 MB / 0.9527 GB, free: 55.45 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03288/1.998, allocations: 23.35 MB / 0.9756 GB, free: 31.97 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005529/2.003, allocations: 5.519 MB / 0.9809 GB, free: 26.41 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006287/2.01, allocations: 2.609 MB / 0.9835 GB, free: 23.79 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001152/2.011, allocations: 387.4 kB / 0.9839 GB, free: 23.41 MB / 0.5607 GB Notification: Performance of SimCode: time 9.02e-07/2.011, allocations: 0 / 0.9839 GB, free: 23.41 MB / 0.5607 GB Notification: Performance of Templates: time 0.3319/2.343, allocations: 92.97 MB / 1.075 GB, free: 177.5 MB / 0.5607 GB 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins/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