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.001405/0.001404, allocations: 113.8 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001266/0.001266, allocations: 210.7 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002097/0.002097, allocations: 63.89 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2465, allocations: 50.54 MB / 410 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.01877/0.2653, allocations: 19.38 MB / 429.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01256/0.2779, allocations: 5.973 MB / 435.3 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003663/0.2816, allocations: 155.4 kB / 435.5 MB, free: 7.965 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01054/0.2922, allocations: 5.829 MB / 441.3 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008038/0.3003, allocations: 3.303 MB / 444.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003432/0.3037, allocations: 1.568 MB / 446.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01661/0.3203, allocations: 12.66 MB / 458.8 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0105/0.3309, allocations: 7.655 MB / 466.5 MB, free: 8.805 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005855/0.3367, allocations: 3.571 MB / 470 MB, free: 5.223 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00677/0.3435, allocations: 4.744 MB / 474.8 MB, free: 476 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002253/0.3458, allocations: 0.7149 MB / 475.5 MB, free: 15.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00419/0.35, allocations: 1.666 MB / 477.2 MB, free: 14.08 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005252/0.3553, allocations: 4.248 MB / 481.4 MB, free: 9.824 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007216/0.3626, allocations: 4.452 MB / 485.9 MB, free: 5.348 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01538/0.378, allocations: 13.6 MB / 499.5 MB, free: 7.703 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.378, allocations: 0 / 499.5 MB, free: 7.703 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.378, allocations: 3.938 kB / 499.5 MB, free: 7.699 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003693/0.3784, allocations: 0 / 499.5 MB, free: 7.699 MB / 414.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.02458/0.403, allocations: 9.645 MB / 0.4972 GB, free: 13.96 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.403, allocations: 8.031 kB / 0.4972 GB, free: 13.96 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0476/0.4507, allocations: 5.236 MB / 0.5023 GB, free: 8.703 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01911/0.4698, allocations: 7.894 MB / 0.51 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003958/0.4703, allocations: 427.4 kB / 0.5104 GB, free: 332 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002037/0.4723, allocations: 0.5931 MB / 0.511 GB, free: 15.73 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03071/0.503, allocations: 16.56 MB / 0.5272 GB, free: 14.11 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002925/0.5034, allocations: 95.17 kB / 0.5273 GB, free: 14.02 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009309/0.5043, allocations: 263.8 kB / 0.5275 GB, free: 13.76 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004511/0.5088, allocations: 2.768 MB / 0.5302 GB, free: 10.98 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4537/0.9626, allocations: 13.62 MB / 0.5435 GB, free: 112.8 MB / 462.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.08981/1.052, allocations: 67.73 MB / 0.6097 GB, free: 56.47 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01845/1.071, allocations: 7.905 MB / 0.6174 GB, free: 48.47 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004793/1.076, allocations: 4.529 MB / 0.6218 GB, free: 43.94 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01669/1.092, allocations: 12.39 MB / 0.6339 GB, free: 31.42 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.827e-05/1.093, allocations: 65.81 kB / 0.634 GB, free: 31.35 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 5.069e-06/1.093, allocations: 0 / 0.634 GB, free: 31.35 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1804/1.273, allocations: 50.12 MB / 0.6829 GB, free: 13.33 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000223/1.273, allocations: 398 kB / 0.6833 GB, free: 12.85 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0114/1.285, allocations: 7.11 MB / 0.6902 GB, free: 5.758 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009111/1.286, allocations: 77.7 kB / 0.6903 GB, free: 5.676 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004329/1.29, allocations: 5.028 MB / 0.6952 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002095/1.292, allocations: 1.257 MB / 0.6964 GB, free: 15.32 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003565/1.296, allocations: 1.86 MB / 0.6983 GB, free: 13.45 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001202/1.296, allocations: 309.1 kB / 0.6986 GB, free: 13.14 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007188/1.303, allocations: 4.543 MB / 0.703 GB, free: 8.594 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01134/1.314, allocations: 9.267 MB / 0.712 GB, free: 13.04 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01896/1.333, allocations: 14.53 MB / 0.7262 GB, free: 12.22 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000177/1.334, allocations: 44.84 kB / 0.7263 GB, free: 12.18 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.2694/1.603, allocations: 19.76 MB / 0.7456 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001584/1.603, allocations: 70.44 kB / 0.7456 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002359/1.603, allocations: 160.5 kB / 0.7458 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02056/1.624, allocations: 7.054 MB / 0.7527 GB, free: 172 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005797/1.63, allocations: 1.929 MB / 0.7546 GB, free: 172 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04111/1.671, allocations: 35.31 MB / 0.789 GB, free: 147.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007761/1.679, allocations: 0.5777 MB / 0.7896 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001425/1.68, allocations: 0.4915 MB / 0.7901 GB, free: 146.4 MB / 0.5294 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.005679/1.686, allocations: 3.471 MB / 0.7935 GB, free: 143 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001374/1.687, allocations: 0.6399 MB / 0.7941 GB, free: 142.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02591/1.713, allocations: 13.32 MB / 0.8071 GB, free: 129.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.164e-05/1.713, allocations: 32 kB / 0.8071 GB, free: 129.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.569e-05/1.713, allocations: 20 kB / 0.8072 GB, free: 129.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-05/1.713, allocations: 19.44 kB / 0.8072 GB, free: 129.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04534/1.759, allocations: 26.56 MB / 0.8331 GB, free: 102.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-05/1.759, allocations: 8 kB / 0.8331 GB, free: 102.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001957/1.761, allocations: 424.1 kB / 0.8335 GB, free: 102 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01912/1.78, allocations: 6.644 MB / 0.84 GB, free: 95.39 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008287/1.781, allocations: 64 kB / 0.8401 GB, free: 95.32 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03842/1.819, allocations: 33.99 MB / 0.8733 GB, free: 61.12 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/1.819, allocations: 11.94 kB / 0.8733 GB, free: 61.11 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03137/1.851, allocations: 18.77 MB / 0.8916 GB, free: 42.49 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001557/1.852, allocations: 0.6902 MB / 0.8923 GB, free: 41.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001434/1.854, allocations: 65.69 kB / 0.8924 GB, free: 41.72 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003715/1.857, allocations: 303.5 kB / 0.8926 GB, free: 41.43 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009061/1.858, allocations: 242.6 kB / 0.8929 GB, free: 41.19 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002712/1.859, allocations: 91.98 kB / 0.893 GB, free: 41.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005559/1.864, allocations: 4.551 MB / 0.8974 GB, free: 36.57 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.1e-07/1.864, allocations: 4.094 kB / 0.8974 GB, free: 36.57 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007786/1.872, allocations: 2.123 MB / 0.8995 GB, free: 34.46 MB / 0.5294 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.0006931/1.873, allocations: 211.8 kB / 0.8997 GB, free: 34.25 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01628/1.889, allocations: 11.63 MB / 0.911 GB, free: 22.59 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/1.889, allocations: 4 kB / 0.911 GB, free: 22.59 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00782/1.897, allocations: 4.997 MB / 0.9159 GB, free: 17.54 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005742/1.903, allocations: 0.9924 MB / 0.9169 GB, free: 16.55 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.24/2.143, allocations: 20.12 MB / 0.9365 GB, free: 182.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009853/2.153, allocations: 5.46 MB / 0.9419 GB, free: 181.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001733/2.154, allocations: 442.2 kB / 0.9423 GB, free: 181.9 MB / 0.545 GB Notification: Performance of SimCode: time 5.61e-07/2.154, allocations: 2.156 kB / 0.9423 GB, free: 181.9 MB / 0.545 GB Notification: Performance of Templates: time 0.4439/2.598, allocations: 207.2 MB / 1.145 GB, free: 171.8 MB / 0.545 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/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