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.001371/0.001371, allocations: 118.8 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001715/0.001715, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 63.89 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2395, allocations: 50.54 MB / 409.3 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02065/0.2602, allocations: 19.37 MB / 428.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01226/0.2725, allocations: 5.977 MB / 434.6 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004242/0.2768, allocations: 155.4 kB / 434.8 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01146/0.2884, allocations: 5.829 MB / 440.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009612/0.298, allocations: 3.416 MB / 444 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00395/0.302, allocations: 1.568 MB / 445.6 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01884/0.3208, allocations: 12.66 MB / 458.2 MB, free: 476 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01109/0.332, allocations: 7.648 MB / 465.9 MB, free: 8.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006926/0.339, allocations: 3.564 MB / 469.5 MB, free: 5.156 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007895/0.3469, allocations: 4.748 MB / 474.2 MB, free: 404 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00339/0.3503, allocations: 0.7149 MB / 474.9 MB, free: 15.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005301/0.3556, allocations: 1.67 MB / 476.6 MB, free: 14.01 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006807/0.3625, allocations: 4.248 MB / 480.8 MB, free: 9.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009262/0.3718, allocations: 4.452 MB / 485.3 MB, free: 5.273 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01893/0.3907, allocations: 13.6 MB / 498.9 MB, free: 7.629 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3908, allocations: 4 kB / 498.9 MB, free: 7.625 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3908, allocations: 0 / 498.9 MB, free: 7.625 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000552/0.3914, allocations: 0 / 498.9 MB, free: 7.625 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.02701/0.4184, allocations: 9.637 MB / 0.4966 GB, free: 13.9 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.4185, allocations: 12.03 kB / 0.4966 GB, free: 13.89 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03986/0.4583, allocations: 5.24 MB / 0.5017 GB, free: 8.629 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02097/0.4794, allocations: 7.898 MB / 0.5095 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004471/0.4799, allocations: 423.4 kB / 0.5099 GB, free: 256 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002805/0.4827, allocations: 0.5893 MB / 0.5104 GB, free: 15.66 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03643/0.5191, allocations: 16.57 MB / 0.5266 GB, free: 14.04 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004505/0.5196, allocations: 95.19 kB / 0.5267 GB, free: 13.94 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002436/0.5221, allocations: 263.8 kB / 0.527 GB, free: 13.68 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004772/0.5269, allocations: 2.76 MB / 0.5296 GB, free: 10.92 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4304/0.9573, allocations: 13.62 MB / 0.543 GB, free: 113.1 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.06858/1.026, allocations: 67.73 MB / 0.6091 GB, free: 56.41 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01755/1.043, allocations: 7.914 MB / 0.6168 GB, free: 48.41 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004998/1.049, allocations: 4.52 MB / 0.6212 GB, free: 43.88 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01736/1.066, allocations: 12.39 MB / 0.6333 GB, free: 31.36 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.11e-05/1.066, allocations: 70.86 kB / 0.6334 GB, free: 31.29 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 5.289e-06/1.066, allocations: 0 / 0.6334 GB, free: 31.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1638/1.23, allocations: 50.12 MB / 0.6824 GB, free: 13.27 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002049/1.23, allocations: 406 kB / 0.6827 GB, free: 12.79 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009834/1.24, allocations: 7.107 MB / 0.6897 GB, free: 5.695 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000888/1.241, allocations: 77.7 kB / 0.6898 GB, free: 5.613 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00358/1.244, allocations: 5.028 MB / 0.6947 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001694/1.246, allocations: 1.253 MB / 0.6959 GB, free: 15.25 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002817/1.249, allocations: 1.86 MB / 0.6977 GB, free: 13.38 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 8.806e-05/1.249, allocations: 305.1 kB / 0.698 GB, free: 13.08 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006825/1.256, allocations: 4.547 MB / 0.7024 GB, free: 8.523 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01017/1.266, allocations: 9.267 MB / 0.7115 GB, free: 12.96 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01848/1.285, allocations: 14.53 MB / 0.7257 GB, free: 12.15 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001578/1.285, allocations: 44 kB / 0.7257 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.2738/1.559, allocations: 19.76 MB / 0.745 GB, free: 172.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001226/1.559, allocations: 74.38 kB / 0.7451 GB, free: 172.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002062/1.559, allocations: 160.4 kB / 0.7452 GB, free: 172.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01902/1.578, allocations: 7.052 MB / 0.7521 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005755/1.584, allocations: 1.927 MB / 0.754 GB, free: 172.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04456/1.628, allocations: 35.31 MB / 0.7885 GB, free: 147.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007659/1.636, allocations: 0.5775 MB / 0.7891 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001701/1.638, allocations: 0.4975 MB / 0.7895 GB, free: 146.3 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.006365/1.644, allocations: 3.472 MB / 0.7929 GB, free: 143 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001695/1.646, allocations: 0.6342 MB / 0.7935 GB, free: 142.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02612/1.672, allocations: 13.32 MB / 0.8066 GB, free: 129.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.497e-05/1.672, allocations: 39.98 kB / 0.8066 GB, free: 129.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-05/1.672, allocations: 23.28 kB / 0.8066 GB, free: 129.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.085e-05/1.672, allocations: 11.95 kB / 0.8066 GB, free: 129.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04958/1.722, allocations: 26.56 MB / 0.8326 GB, free: 102.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.536e-05/1.722, allocations: 12 kB / 0.8326 GB, free: 102.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001875/1.724, allocations: 423.3 kB / 0.833 GB, free: 102 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01674/1.741, allocations: 6.645 MB / 0.8395 GB, free: 95.34 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008216/1.742, allocations: 60 kB / 0.8395 GB, free: 95.29 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03927/1.781, allocations: 33.99 MB / 0.8727 GB, free: 61.08 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.992e-06/1.781, allocations: 11.88 kB / 0.8727 GB, free: 61.07 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02953/1.81, allocations: 18.77 MB / 0.8911 GB, free: 42.45 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001934/1.812, allocations: 0.6856 MB / 0.8917 GB, free: 41.74 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001751/1.814, allocations: 67.92 kB / 0.8918 GB, free: 41.68 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003805/1.818, allocations: 303.5 kB / 0.8921 GB, free: 41.38 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001077/1.819, allocations: 246.6 kB / 0.8923 GB, free: 41.14 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004063/1.819, allocations: 93.8 kB / 0.8924 GB, free: 41.05 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007403/1.827, allocations: 4.551 MB / 0.8969 GB, free: 36.53 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.01e-07/1.827, allocations: 0 / 0.8969 GB, free: 36.53 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008905/1.836, allocations: 2.12 MB / 0.8989 GB, free: 34.41 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.0006242/1.836, allocations: 213.4 kB / 0.8991 GB, free: 34.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01489/1.851, allocations: 11.62 MB / 0.9105 GB, free: 22.55 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.179e-05/1.851, allocations: 5.062 kB / 0.9105 GB, free: 22.55 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006687/1.858, allocations: 5.003 MB / 0.9154 GB, free: 17.49 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00468/1.863, allocations: 0.9946 MB / 0.9163 GB, free: 16.51 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03467/1.897, allocations: 19.52 MB / 0.9354 GB, free: 12.89 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2721/2.17, allocations: 5.522 MB / 0.9408 GB, free: 183.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006411/2.176, allocations: 2.605 MB / 0.9433 GB, free: 183.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001251/2.177, allocations: 391.6 kB / 0.9437 GB, free: 183.4 MB / 0.545 GB Notification: Performance of SimCode: time 9.52e-07/2.177, allocations: 0 / 0.9437 GB, free: 183.4 MB / 0.545 GB Notification: Performance of Templates: time 0.1452/2.322, allocations: 93.84 MB / 1.035 GB, free: 108.4 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/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