Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 112.2 kB / 17.74 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 187.1 kB / 18.67 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 51.92 kB / 352 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.3002, allocations: 49.42 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02078/0.321, allocations: 20.53 MB / 422 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01362/0.3346, allocations: 6.181 MB / 428.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004063/0.3388, allocations: 167.4 kB / 428.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0115/0.3503, allocations: 6.351 MB / 434.7 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008584/0.3589, allocations: 3.435 MB / 438.1 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004046/0.363, allocations: 1.658 MB / 439.8 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01612/0.3792, allocations: 12.65 MB / 452.4 MB, free: 5.727 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01101/0.3902, allocations: 8.053 MB / 460.5 MB, free: 13.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006807/0.3971, allocations: 3.758 MB / 464.2 MB, free: 9.816 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007472/0.4046, allocations: 4.978 MB / 469.2 MB, free: 4.824 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002751/0.4074, allocations: 0.7461 MB / 469.9 MB, free: 4.078 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004925/0.4123, allocations: 1.717 MB / 471.7 MB, free: 2.359 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006245/0.4186, allocations: 4.458 MB / 476.1 MB, free: 13.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008709/0.4273, allocations: 4.662 MB / 480.8 MB, free: 9.203 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.017/0.4444, allocations: 14.17 MB / 495 MB, free: 10.98 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.4444, allocations: 4 kB / 495 MB, free: 10.98 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4444, allocations: 0 / 495 MB, free: 10.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005314/0.445, allocations: 0 / 495 MB, free: 10.98 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.02661/0.4716, allocations: 10.03 MB / 0.4932 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.4717, allocations: 8.031 kB / 0.4932 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04644/0.5181, allocations: 5.275 MB / 0.4983 GB, free: 11.56 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01909/0.5373, allocations: 8.251 MB / 0.5064 GB, free: 3.242 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003973/0.5377, allocations: 452 kB / 0.5068 GB, free: 2.801 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002516/0.5402, allocations: 0.6204 MB / 0.5074 GB, free: 2.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03404/0.5743, allocations: 17.12 MB / 0.5241 GB, free: 4 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004058/0.5748, allocations: 103.1 kB / 0.5242 GB, free: 15.9 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001742/0.5765, allocations: 283.7 kB / 0.5245 GB, free: 15.62 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00488/0.5814, allocations: 2.858 MB / 0.5273 GB, free: 12.76 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4526/1.034, allocations: 14.03 MB / 0.541 GB, free: 118.2 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.07816/1.112, allocations: 69.69 MB / 0.609 GB, free: 61.61 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01937/1.132, allocations: 8.224 MB / 0.6171 GB, free: 53.29 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004978/1.137, allocations: 4.644 MB / 0.6216 GB, free: 48.64 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01829/1.155, allocations: 12.76 MB / 0.6341 GB, free: 35.75 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.683e-05/1.155, allocations: 67.53 kB / 0.6341 GB, free: 35.68 MB / 462.1 MB Notification: Performance of pre-optimization done (n=294): time 5.961e-06/1.155, allocations: 0 / 0.6341 GB, free: 35.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=360): time 0.1946/1.35, allocations: 52.52 MB / 0.6854 GB, free: 15.22 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002161/1.35, allocations: 398.2 kB / 0.6858 GB, free: 14.75 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01328/1.363, allocations: 7.276 MB / 0.6929 GB, free: 7.496 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001111/1.364, allocations: 81.7 kB / 0.693 GB, free: 7.41 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004603/1.369, allocations: 5.208 MB / 0.6981 GB, free: 2.141 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002099/1.371, allocations: 1.33 MB / 0.6994 GB, free: 0.793 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004073/1.375, allocations: 1.912 MB / 0.7012 GB, free: 14.87 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 9.797e-05/1.375, allocations: 301.1 kB / 0.7015 GB, free: 14.57 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007776/1.383, allocations: 4.711 MB / 0.7061 GB, free: 9.852 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01176/1.395, allocations: 9.539 MB / 0.7154 GB, free: 13.97 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01975/1.415, allocations: 15.01 MB / 0.7301 GB, free: 12.63 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001559/1.415, allocations: 44 kB / 0.7301 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.293/1.708, allocations: 20.47 MB / 0.7501 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001129/1.708, allocations: 78.31 kB / 0.7502 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001935/1.708, allocations: 163.8 kB / 0.7504 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0217/1.73, allocations: 7.308 MB / 0.7575 GB, free: 177.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006525/1.737, allocations: 2.002 MB / 0.7595 GB, free: 177.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04473/1.781, allocations: 36.55 MB / 0.7951 GB, free: 151.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009566/1.791, allocations: 0.5933 MB / 0.7957 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002059/1.793, allocations: 0.5039 MB / 0.7962 GB, free: 150 MB / 0.5294 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 (1082): * Single equations (assignments): 1076 * 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,97,55.1%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.007354/1.8, allocations: 3.596 MB / 0.7997 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001736/1.802, allocations: 0.6586 MB / 0.8004 GB, free: 146.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02757/1.83, allocations: 13.94 MB / 0.814 GB, free: 132.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.675e-05/1.83, allocations: 36 kB / 0.814 GB, free: 132.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.944e-05/1.83, allocations: 20.75 kB / 0.814 GB, free: 132.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.401e-05/1.83, allocations: 15.94 kB / 0.8141 GB, free: 132.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0494/1.879, allocations: 27.7 MB / 0.8411 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.982e-05/1.88, allocations: 7.312 kB / 0.8411 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002285/1.882, allocations: 471.3 kB / 0.8416 GB, free: 103.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01985/1.902, allocations: 6.956 MB / 0.8484 GB, free: 96.81 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001023/1.903, allocations: 67.98 kB / 0.8484 GB, free: 96.74 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04036/1.943, allocations: 35.34 MB / 0.8829 GB, free: 61.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.115e-06/1.943, allocations: 15.88 kB / 0.8829 GB, free: 61.18 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03386/1.977, allocations: 19.71 MB / 0.9022 GB, free: 41.66 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004136/1.981, allocations: 1.424 MB / 0.9036 GB, free: 40.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001991/1.983, allocations: 67.94 kB / 0.9037 GB, free: 40.19 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004878/1.988, allocations: 323.5 kB / 0.904 GB, free: 39.87 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00127/1.99, allocations: 250.9 kB / 0.9042 GB, free: 39.62 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003522/1.99, allocations: 98.19 kB / 0.9043 GB, free: 39.53 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007008/1.997, allocations: 4.65 MB / 0.9088 GB, free: 34.91 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.61e-07/1.997, allocations: 0 / 0.9088 GB, free: 34.91 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0102/2.007, allocations: 2.221 MB / 0.911 GB, free: 32.7 MB / 0.5294 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 (232): * Single equations (assignments): 226 * 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.001174/2.008, allocations: 225 kB / 0.9112 GB, free: 32.48 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01788/2.026, allocations: 12.04 MB / 0.923 GB, free: 20.41 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.349e-05/2.026, allocations: 0.9375 kB / 0.923 GB, free: 20.41 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.009112/2.035, allocations: 5.295 MB / 0.9281 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007878/2.043, allocations: 1.02 MB / 0.9291 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2755/2.319, allocations: 20.91 MB / 0.9496 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009634/2.329, allocations: 5.66 MB / 0.9551 GB, free: 173 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001801/2.33, allocations: 462.1 kB / 0.9555 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of SimCode: time 7.62e-07/2.33, allocations: 3.391 kB / 0.9555 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of Templates: time 0.5047/2.835, allocations: 215.5 MB / 1.166 GB, free: 160.1 MB / 0.5294 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches