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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001467/0.001467, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.656/1.656, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008939/0.0008941, allocations: 94.2 kB / 262.5 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.47e-05/1.472e-05, allocations: 7.984 kB / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1116, allocations: 47.59 MB / 363.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4472/0.5588, allocations: 109.1 MB / 472.2 MB, free: 2.938 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003156/0.5592, allocations: 86.27 kB / 472.3 MB, free: 2.895 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7063/1.265, allocations: 180.1 MB / 0.637 GB, free: 48.66 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.565e-06/1.266, allocations: 0 / 0.637 GB, free: 48.66 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0009497/1.267, allocations: 187.7 kB / 0.6372 GB, free: 48.48 MB / 410.7 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.03496/1.301, allocations: 9.154 MB / 0.6462 GB, free: 39.26 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.804e-05/1.302, allocations: 12.03 kB / 0.6462 GB, free: 39.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06386/1.365, allocations: 16.65 MB / 0.6624 GB, free: 22.56 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03838/1.404, allocations: 14.6 MB / 0.6767 GB, free: 8.012 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006439/1.405, allocations: 272 kB / 0.677 GB, free: 7.746 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00502/1.41, allocations: 0.5191 MB / 0.6775 GB, free: 7.227 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3435/1.753, allocations: 11.7 MB / 0.6889 GB, free: 55.64 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06368/1.817, allocations: 16.55 MB / 0.705 GB, free: 52.03 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007261/1.818, allocations: 110.6 kB / 0.7051 GB, free: 52.03 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003844/1.822, allocations: 40.69 kB / 0.7052 GB, free: 52.03 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002336/1.824, allocations: 1.597 MB / 0.7067 GB, free: 52.01 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1007/1.925, allocations: 78.15 MB / 0.7831 GB, free: 4.828 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007042/1.932, allocations: 5.433 MB / 0.7884 GB, free: 2.074 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004393/1.936, allocations: 3.877 MB / 0.7922 GB, free: 312 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002902/1.939, allocations: 2.857 MB / 0.7949 GB, free: 13.84 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.699e-05/1.939, allocations: 69.69 kB / 0.795 GB, free: 13.77 MB / 426.7 MB Notification: Performance of pre-optimization done (n=314): time 5.75e-06/1.939, allocations: 0 / 0.795 GB, free: 13.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=414): time 0.1128/2.052, allocations: 38.59 MB / 0.8327 GB, free: 5.23 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002288/2.052, allocations: 398.6 kB / 0.8331 GB, free: 4.754 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01385/2.066, allocations: 5.947 MB / 0.8389 GB, free: 15.58 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001058/2.067, allocations: 25.7 kB / 0.8389 GB, free: 15.55 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005654/2.073, allocations: 5.887 MB / 0.8447 GB, free: 10.2 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002485/2.076, allocations: 1.453 MB / 0.8461 GB, free: 8.887 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009181/2.077, allocations: 0 / 0.8461 GB, free: 8.887 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005759/2.077, allocations: 0.7077 MB / 0.8468 GB, free: 8.285 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006086/2.083, allocations: 3.97 MB / 0.8506 GB, free: 4.684 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3265/2.41, allocations: 9.086 MB / 0.8595 GB, free: 90.72 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01287/2.423, allocations: 5.944 MB / 0.8653 GB, free: 90.66 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0006411/2.423, allocations: 52.25 kB / 0.8654 GB, free: 90.66 MB / 458.7 MB Notification: Performance of matching and sorting (n=1245) (initialization): time 0.04429/2.468, allocations: 16.01 MB / 0.881 GB, free: 90.18 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002448/2.468, allocations: 85 kB / 0.8811 GB, free: 90.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004174/2.468, allocations: 179.7 kB / 0.8813 GB, free: 90.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01511/2.484, allocations: 4.559 MB / 0.8857 GB, free: 90.14 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007872/2.491, allocations: 2.023 MB / 0.8877 GB, free: 89.96 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03575/2.527, allocations: 23.45 MB / 0.9106 GB, free: 85.94 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01225/2.54, allocations: 370 kB / 0.911 GB, free: 85.94 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003739/2.543, allocations: 0.5269 MB / 0.9115 GB, free: 85.87 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 817 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1093): * Single equations (assignments): 1088 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005077/2.549, allocations: 0.5845 MB / 0.912 GB, free: 85.52 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002309/2.551, allocations: 0.683 MB / 0.9127 GB, free: 85.52 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02366/2.575, allocations: 10.49 MB / 0.9229 GB, free: 81.83 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.413e-05/2.575, allocations: 42.66 kB / 0.923 GB, free: 81.83 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.529e-05/2.575, allocations: 23.09 kB / 0.923 GB, free: 81.83 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.902e-05/2.575, allocations: 23.92 kB / 0.923 GB, free: 81.83 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05296/2.628, allocations: 22.1 MB / 0.9446 GB, free: 73.44 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.34e-05/2.628, allocations: 7.594 kB / 0.9446 GB, free: 73.44 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002734/2.631, allocations: 0.5314 MB / 0.9451 GB, free: 73.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01407/2.645, allocations: 4.049 MB / 0.9491 GB, free: 72.13 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001174/2.646, allocations: 24 kB / 0.9491 GB, free: 72.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02776/2.674, allocations: 20.28 MB / 0.9689 GB, free: 54.96 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.215e-05/2.674, allocations: 11.94 kB / 0.9689 GB, free: 54.95 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02747/2.701, allocations: 17.18 MB / 0.9857 GB, free: 39.79 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004512/2.706, allocations: 1.347 MB / 0.987 GB, free: 38.53 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002352/2.708, allocations: 15.66 kB / 0.987 GB, free: 38.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005165/2.713, allocations: 184 kB / 0.9872 GB, free: 38.42 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001403/2.715, allocations: 283.3 kB / 0.9875 GB, free: 38.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004245/2.715, allocations: 111 kB / 0.9876 GB, free: 38.13 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01019/2.725, allocations: 4.146 MB / 0.9916 GB, free: 34.55 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.2e-07/2.725, allocations: 4 kB / 0.9916 GB, free: 34.55 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01576/2.741, allocations: 1.941 MB / 0.9935 GB, free: 32.63 MB / 458.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (290): * Single equations (assignments): 286 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001603/2.743, allocations: 205.9 kB / 0.9937 GB, free: 32.46 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01726/2.76, allocations: 10.01 MB / 1.004 GB, free: 23.28 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.691e-05/2.76, allocations: 4.875 kB / 1.004 GB, free: 23.27 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006431/2.767, allocations: 4.235 MB / 1.008 GB, free: 19.39 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00696/2.774, allocations: 0.9135 MB / 1.009 GB, free: 18.65 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3813/3.155, allocations: 17.74 MB / 1.026 GB, free: 82.04 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02023/3.175, allocations: 6.57 MB / 1.032 GB, free: 81.12 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01141/3.187, allocations: 3.012 MB / 1.035 GB, free: 81.05 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002349/3.189, allocations: 419.2 kB / 1.036 GB, free: 81.04 MB / 458.7 MB Notification: Performance of SimCode: time 2.014e-06/3.189, allocations: 5.625 kB / 1.036 GB, free: 81.04 MB / 458.7 MB Notification: Performance of Templates: time 0.156/3.345, allocations: 85.63 MB / 1.119 GB, free: 51.23 MB / 458.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","../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