Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 108.4 kB / 18.34 MB, free: 4.699 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.001163/0.001163, allocations: 190.9 kB / 19.28 MB, free: 3.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.449/1.449, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 43.94 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08501/0.08666, allocations: 46.62 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.02079/0.1075, allocations: 23.46 MB / 352.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01341/0.1209, allocations: 7.085 MB / 359.3 MB, free: 5.074 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004079/0.1251, allocations: 179.4 kB / 359.4 MB, free: 4.898 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0131/0.1382, allocations: 7.937 MB / 367.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007978/0.1462, allocations: 3.599 MB / 371 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004164/0.1504, allocations: 2.013 MB / 373 MB, free: 7.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1735/0.3239, allocations: 12.24 MB / 385.2 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01334/0.3373, allocations: 10.48 MB / 395.7 MB, free: 13.08 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00755/0.3449, allocations: 4.282 MB / 400 MB, free: 12.83 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009014/0.3539, allocations: 5.721 MB / 405.7 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002728/0.3567, allocations: 1.005 MB / 406.7 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004472/0.3612, allocations: 2.145 MB / 408.9 MB, free: 11.4 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005104/0.3663, allocations: 5.054 MB / 413.9 MB, free: 9.438 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007685/0.374, allocations: 5.425 MB / 419.3 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01687/0.3909, allocations: 17.27 MB / 436.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.3909, allocations: 0 / 436.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.391, allocations: 4 kB / 436.6 MB, free: 3.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004924/0.3915, allocations: 0 / 436.6 MB, free: 3.297 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.0259/0.4174, allocations: 11.23 MB / 447.8 MB, free: 8.121 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.4174, allocations: 11.89 kB / 447.9 MB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04205/0.4595, allocations: 5.418 MB / 453.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02182/0.4813, allocations: 9.347 MB / 462.6 MB, free: 9.602 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005658/0.482, allocations: 0.5241 MB / 463.1 MB, free: 9.125 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004244/0.4862, allocations: 0.7282 MB / 463.9 MB, free: 8.445 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04421/0.5305, allocations: 19.52 MB / 483.4 MB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004769/0.531, allocations: 90.33 kB / 483.5 MB, free: 4.094 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002429/0.5334, allocations: 330.2 kB / 483.8 MB, free: 3.824 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004318/0.5377, allocations: 2.81 MB / 486.6 MB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03452/0.5723, allocations: 16.26 MB / 0.4911 GB, free: 1.043 MB / 398.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.4341/1.006, allocations: 74.17 MB / 0.5635 GB, free: 110.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02083/1.027, allocations: 8.479 MB / 0.5718 GB, free: 110.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005848/1.033, allocations: 4.763 MB / 0.5764 GB, free: 108.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02027/1.053, allocations: 15.4 MB / 0.5915 GB, free: 100.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.439e-05/1.054, allocations: 73.08 kB / 0.5915 GB, free: 100.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=319): time 5.159e-06/1.054, allocations: 0 / 0.5915 GB, free: 100.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=419): time 0.1601/1.214, allocations: 50.45 MB / 0.6408 GB, free: 57.47 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/1.214, allocations: 406.7 kB / 0.6412 GB, free: 56.98 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01388/1.228, allocations: 7.64 MB / 0.6487 GB, free: 49.38 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001069/1.229, allocations: 89.7 kB / 0.6487 GB, free: 49.29 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003639/1.233, allocations: 5.619 MB / 0.6542 GB, free: 43.67 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001894/1.234, allocations: 1.532 MB / 0.6557 GB, free: 42.15 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00545/1.24, allocations: 2.082 MB / 0.6578 GB, free: 40.06 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.511e-05/1.24, allocations: 312.6 kB / 0.6581 GB, free: 39.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006762/1.247, allocations: 5.115 MB / 0.6631 GB, free: 34.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008839/1.256, allocations: 10.2 MB / 0.673 GB, free: 22.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01795/1.274, allocations: 16.14 MB / 0.6888 GB, free: 3.633 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001853/1.274, allocations: 48 kB / 0.6888 GB, free: 3.586 MB / 446.1 MB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.2226/1.496, allocations: 20.86 MB / 0.7092 GB, free: 143.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001864/1.497, allocations: 78.47 kB / 0.7093 GB, free: 143.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000361/1.497, allocations: 175.2 kB / 0.7094 GB, free: 143.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02126/1.518, allocations: 6.452 MB / 0.7157 GB, free: 143.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009184/1.528, allocations: 2.154 MB / 0.7178 GB, free: 143.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04291/1.57, allocations: 33.57 MB / 0.7506 GB, free: 130.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008662/1.579, allocations: 0.618 MB / 0.7512 GB, free: 130.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001719/1.581, allocations: 0.5354 MB / 0.7518 GB, free: 130.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 784 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1180): * Single equations (assignments): 1175 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,124,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007409/1.588, allocations: 4.096 MB / 0.7558 GB, free: 128.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002013/1.59, allocations: 0.6949 MB / 0.7564 GB, free: 128.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02719/1.618, allocations: 13.85 MB / 0.77 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.396e-05/1.618, allocations: 44 kB / 0.77 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.298e-05/1.618, allocations: 23.94 kB / 0.77 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.066e-05/1.618, allocations: 23.92 kB / 0.77 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05559/1.673, allocations: 26.98 MB / 0.7964 GB, free: 90.56 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.355e-05/1.674, allocations: 14.69 kB / 0.7964 GB, free: 90.55 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002685/1.676, allocations: 0.5449 MB / 0.7969 GB, free: 90 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01745/1.694, allocations: 5.955 MB / 0.8028 GB, free: 84.09 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000975/1.695, allocations: 83.92 kB / 0.8028 GB, free: 84.01 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03849/1.733, allocations: 30.29 MB / 0.8324 GB, free: 53.82 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.666e-06/1.733, allocations: 8 kB / 0.8324 GB, free: 53.81 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0356/1.769, allocations: 20 MB / 0.852 GB, free: 33.98 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005635/1.775, allocations: 1.542 MB / 0.8535 GB, free: 32.41 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002861/1.777, allocations: 79.98 kB / 0.8535 GB, free: 32.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006684/1.784, allocations: 308.5 kB / 0.8538 GB, free: 32.04 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001977/1.786, allocations: 295.2 kB / 0.8541 GB, free: 31.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001087/1.787, allocations: 113.3 kB / 0.8542 GB, free: 31.64 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.008484/1.796, allocations: 4.89 MB / 0.859 GB, free: 26.79 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.463e-06/1.796, allocations: 7.938 kB / 0.859 GB, free: 26.78 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01108/1.807, allocations: 2.414 MB / 0.8614 GB, free: 24.38 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (292): * Single equations (assignments): 288 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,111,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001359/1.808, allocations: 275.4 kB / 0.8616 GB, free: 24.11 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.187/1.995, allocations: 12.43 MB / 0.8738 GB, free: 148.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.577e-05/1.995, allocations: 6.094 kB / 0.8738 GB, free: 148.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008791/2.004, allocations: 5.101 MB / 0.8788 GB, free: 148.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007147/2.011, allocations: 1.076 MB / 0.8798 GB, free: 148.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04259/2.054, allocations: 22.45 MB / 0.9017 GB, free: 140.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01026/2.064, allocations: 6.393 MB / 0.908 GB, free: 138.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007414/2.072, allocations: 2.953 MB / 0.9109 GB, free: 138.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001929/2.074, allocations: 432.4 kB / 0.9113 GB, free: 138.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.343e-06/2.074, allocations: 0 / 0.9113 GB, free: 138.3 MB / 462.1 MB Notification: Performance of Templates: time 0.1566/2.23, allocations: 102.7 MB / 1.012 GB, free: 38.89 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches