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.001249/0.001249, allocations: 100.3 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001734/0.001734, allocations: 202.8 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002057/0.0002057, allocations: 4 kB / 306.6 MB, free: 1.414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09303/0.09325, allocations: 51.5 MB / 358.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2349/0.3282, allocations: 88.49 MB / 446.6 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04322/0.3714, allocations: 20.09 MB / 466.6 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01603/0.3875, allocations: 466.8 kB / 467.1 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01402/0.4015, allocations: 4.452 MB / 471.6 MB, free: 9.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03607/0.4377, allocations: 12.78 MB / 484.3 MB, free: 13.11 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005641/0.4433, allocations: 1.385 MB / 485.7 MB, free: 11.72 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.358/0.8013, allocations: 142.5 MB / 0.6135 GB, free: 23.36 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009624/0.811, allocations: 8.733 MB / 0.622 GB, free: 17.17 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003462/0.8145, allocations: 2.411 MB / 0.6244 GB, free: 15.61 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003243/0.8177, allocations: 3.121 MB / 0.6274 GB, free: 13.39 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008382/0.8186, allocations: 276 kB / 0.6277 GB, free: 13.12 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001905/0.8205, allocations: 1.096 MB / 0.6288 GB, free: 12.21 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002165/0.8227, allocations: 3.398 MB / 0.6321 GB, free: 9.723 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001373/0.8241, allocations: 1.589 MB / 0.6336 GB, free: 9.141 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008101/0.8322, allocations: 11.19 MB / 0.6446 GB, free: 15.41 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.8322, allocations: 0 / 0.6446 GB, free: 15.41 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.035e-06/0.8322, allocations: 0 / 0.6446 GB, free: 15.41 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003814/0.8326, allocations: 0 / 0.6446 GB, free: 15.41 MB / 462.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.02425/0.8569, allocations: 8.862 MB / 0.6532 GB, free: 7.254 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.8569, allocations: 8.031 kB / 0.6532 GB, free: 7.246 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2969/1.154, allocations: 29.78 MB / 0.6823 GB, free: 11.36 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0193/1.173, allocations: 8.185 MB / 0.6903 GB, free: 5.449 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000354/1.174, allocations: 424.9 kB / 0.6907 GB, free: 5.219 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002051/1.176, allocations: 0.5934 MB / 0.6913 GB, free: 4.824 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02918/1.205, allocations: 16.4 MB / 0.7073 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002734/1.205, allocations: 100.3 kB / 0.7074 GB, free: 7.949 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008659/1.206, allocations: 262.1 kB / 0.7077 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004234/1.21, allocations: 2.767 MB / 0.7104 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3672/1.577, allocations: 13.11 MB / 0.7232 GB, free: 197.4 MB / 0.4982 GB 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.07777/1.655, allocations: 66.82 MB / 0.7884 GB, free: 148.7 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0185/1.674, allocations: 7.718 MB / 0.796 GB, free: 140.9 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01668/1.69, allocations: 11.83 MB / 0.8075 GB, free: 129 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.056e-05/1.691, allocations: 71.08 kB / 0.8076 GB, free: 128.9 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=280): time 5.25e-06/1.691, allocations: 0 / 0.8076 GB, free: 128.9 MB / 0.4982 GB Notification: Performance of matching and sorting (n=339): time 0.16/1.851, allocations: 48.62 MB / 0.8551 GB, free: 80.5 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/1.851, allocations: 398 kB / 0.8554 GB, free: 80.03 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01024/1.861, allocations: 7.857 MB / 0.8631 GB, free: 72.2 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0009697/1.862, allocations: 82.64 kB / 0.8632 GB, free: 72.12 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.003072/1.865, allocations: 5.165 MB / 0.8682 GB, free: 66.95 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001649/1.867, allocations: 1.244 MB / 0.8694 GB, free: 65.71 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004782/1.867, allocations: 167.4 kB / 0.8696 GB, free: 65.55 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0003277/1.868, allocations: 0.6608 MB / 0.8703 GB, free: 64.88 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004633/1.872, allocations: 3.928 MB / 0.8741 GB, free: 60.95 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006349/1.879, allocations: 8.525 MB / 0.8824 GB, free: 50.14 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005946/1.884, allocations: 5.621 MB / 0.8879 GB, free: 44.5 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.106e-05/1.885, allocations: 44 kB / 0.8879 GB, free: 44.45 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.02892/1.913, allocations: 17.1 MB / 0.9046 GB, free: 27.29 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 8.112e-05/1.914, allocations: 72 kB / 0.9047 GB, free: 27.22 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001427/1.914, allocations: 164.1 kB / 0.9049 GB, free: 27.06 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01639/1.93, allocations: 5.788 MB / 0.9105 GB, free: 21.26 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005593/1.936, allocations: 1.751 MB / 0.9122 GB, free: 19.5 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2601/2.196, allocations: 30.67 MB / 0.9422 GB, free: 174.1 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008106/2.204, allocations: 0.5301 MB / 0.9427 GB, free: 174 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001725/2.206, allocations: 475.2 kB / 0.9431 GB, free: 173.9 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * 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 (934): * Single equations (assignments): 928 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 94,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.006655/2.213, allocations: 3.461 MB / 0.9465 GB, free: 172.6 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001457/2.214, allocations: 0.6514 MB / 0.9472 GB, free: 172.6 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02206/2.236, allocations: 11.46 MB / 0.9584 GB, free: 168.9 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.668e-05/2.236, allocations: 33.39 kB / 0.9584 GB, free: 168.9 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.884e-05/2.236, allocations: 18.88 kB / 0.9584 GB, free: 168.9 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.668e-05/2.236, allocations: 19.02 kB / 0.9584 GB, free: 168.9 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04222/2.278, allocations: 24.91 MB / 0.9827 GB, free: 158.3 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.284e-05/2.279, allocations: 3.938 kB / 0.9827 GB, free: 158.3 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001984/2.281, allocations: 423.4 kB / 0.9832 GB, free: 158.2 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01506/2.296, allocations: 5.405 MB / 0.9884 GB, free: 154.2 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000704/2.296, allocations: 62.81 kB / 0.9885 GB, free: 154.2 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03242/2.329, allocations: 29.39 MB / 1.017 GB, free: 124.6 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/2.329, allocations: 11.95 kB / 1.017 GB, free: 124.6 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02615/2.355, allocations: 17.6 MB / 1.034 GB, free: 107.1 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002198/2.357, allocations: 0.716 MB / 1.035 GB, free: 106.3 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001534/2.359, allocations: 65.14 kB / 1.035 GB, free: 106.3 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003739/2.363, allocations: 275 kB / 1.035 GB, free: 106 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009923/2.364, allocations: 235.5 kB / 1.036 GB, free: 105.8 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003698/2.364, allocations: 92.92 kB / 1.036 GB, free: 105.7 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.01146/2.375, allocations: 5.159 MB / 1.041 GB, free: 100.6 MB / 0.4982 GB Notification: Performance of sort global known variables: time 6.61e-07/2.375, allocations: 0 / 1.041 GB, free: 100.6 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.0145/2.39, allocations: 2 MB / 1.043 GB, free: 98.56 MB / 0.4982 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001668/2.392, allocations: 221.9 kB / 1.043 GB, free: 98.34 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.02179/2.414, allocations: 10.43 MB / 1.053 GB, free: 87.93 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/2.414, allocations: 0 / 1.053 GB, free: 87.93 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.007531/2.421, allocations: 4.669 MB / 1.058 GB, free: 83.23 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005784/2.427, allocations: 0.9814 MB / 1.059 GB, free: 82.27 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03325/2.46, allocations: 21.64 MB / 1.08 GB, free: 60.72 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006501/2.467, allocations: 5.69 MB / 1.085 GB, free: 55 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.00681/2.474, allocations: 2.644 MB / 1.088 GB, free: 52.35 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001262/2.475, allocations: 403.4 kB / 1.088 GB, free: 51.95 MB / 0.4982 GB Notification: Performance of SimCode: time 1.112e-06/2.475, allocations: 0 / 1.088 GB, free: 51.95 MB / 0.4982 GB Notification: Performance of Templates: time 0.3453/2.82, allocations: 88.1 MB / 1.174 GB, free: 142.4 MB / 0.4982 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","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches