Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First") translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009683/0.0009684, allocations: 180.8 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007434/0.0007435, allocations: 105.1 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002306/0.0002307, allocations: 4 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2251/0.2254, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09069/0.3161, allocations: 78.42 MB / 479.9 MB, free: 2.082 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002202/0.3164, allocations: 72.66 kB / 480 MB, free: 2.012 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01085/0.3272, allocations: 4.148 MB / 484.1 MB, free: 13.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3273, allocations: 0 / 484.1 MB, free: 13.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.311e-05/0.3273, allocations: 4 kB / 484.1 MB, free: 13.86 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0005945/0.3279, allocations: 0.4912 MB / 484.6 MB, free: 13.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.3279, allocations: 8.031 kB / 484.6 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.653e-05/0.328, allocations: 35.66 kB / 484.7 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002395/0.3283, allocations: 232.9 kB / 484.9 MB, free: 13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.3283, allocations: 16.44 kB / 484.9 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.031e-05/0.3283, allocations: 20 kB / 484.9 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.3287, allocations: 195.3 kB / 485.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.3287, allocations: 0 / 485.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.186e-05/0.3287, allocations: 12 kB / 485.1 MB, free: 12.76 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.3287, allocations: 11.94 kB / 485.1 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002686/0.329, allocations: 141.7 kB / 485.3 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000944/0.33, allocations: 0.6268 MB / 485.9 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002937/0.3303, allocations: 181.3 kB / 486.1 MB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.3303, allocations: 0 / 486.1 MB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.3303, allocations: 42.55 kB / 486.1 MB, free: 11.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.192e-06/0.3303, allocations: 0 / 486.1 MB, free: 11.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001852/0.3322, allocations: 1.073 MB / 487.2 MB, free: 10.53 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/0.3322, allocations: 55.41 kB / 487.3 MB, free: 10.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001549/0.3324, allocations: 163.1 kB / 487.4 MB, free: 10.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.851e-05/0.3324, allocations: 29.7 kB / 487.4 MB, free: 10.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.52e-05/0.3325, allocations: 140.7 kB / 487.6 MB, free: 10.12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.387e-05/0.3326, allocations: 118.3 kB / 487.7 MB, free: 10 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.053e-05/0.3326, allocations: 4 kB / 487.7 MB, free: 9.996 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.3328, allocations: 334.8 kB / 488 MB, free: 9.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.3329, allocations: 67.95 kB / 488.1 MB, free: 9.594 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.3331, allocations: 110.8 kB / 488.2 MB, free: 9.477 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001508/0.3333, allocations: 81.41 kB / 488.3 MB, free: 9.398 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.3333, allocations: 0 / 488.3 MB, free: 9.398 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004762/0.3338, allocations: 308 kB / 488.6 MB, free: 9.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.3338, allocations: 4 kB / 488.6 MB, free: 9.086 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.3338, allocations: 0 / 488.6 MB, free: 9.086 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001708/0.334, allocations: 52.75 kB / 488.6 MB, free: 9.031 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002416/0.3342, allocations: 51.97 kB / 488.7 MB, free: 8.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001365/0.3356, allocations: 1.581 MB / 490.3 MB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.3357, allocations: 16.03 kB / 490.3 MB, free: 7.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.773e-05/0.3358, allocations: 11.92 kB / 490.3 MB, free: 7.238 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * 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 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001472/0.3359, allocations: 157.8 kB / 490.5 MB, free: 7.074 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.516e-05/0.336, allocations: 23.72 kB / 490.5 MB, free: 7.051 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.871e-05/0.336, allocations: 26.66 kB / 490.5 MB, free: 7.023 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.336, allocations: 7.953 kB / 490.5 MB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3361, allocations: 0 / 490.5 MB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.3361, allocations: 3.984 kB / 490.5 MB, free: 7.012 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.3371, allocations: 0.7747 MB / 491.3 MB, free: 6.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.3371, allocations: 4 kB / 491.3 MB, free: 6.156 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000254/0.3374, allocations: 55.91 kB / 491.3 MB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001075/0.3375, allocations: 40.83 kB / 491.4 MB, free: 6.059 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.3375, allocations: 4 kB / 491.4 MB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009828/0.3385, allocations: 1.398 MB / 492.8 MB, free: 4.52 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3385, allocations: 0 / 492.8 MB, free: 4.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006306/0.3392, allocations: 0.5114 MB / 493.3 MB, free: 3.961 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.794e-05/0.3392, allocations: 101 kB / 493.4 MB, free: 3.844 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.663e-05/0.3393, allocations: 8 kB / 493.4 MB, free: 3.836 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001335/0.3394, allocations: 12 kB / 493.4 MB, free: 3.824 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.816e-05/0.3395, allocations: 23.92 kB / 493.4 MB, free: 3.801 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.5e-05/0.3395, allocations: 8 kB / 493.4 MB, free: 3.793 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001/0.3396, allocations: 139.5 kB / 493.6 MB, free: 3.656 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3396, allocations: 0 / 493.6 MB, free: 3.656 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003496/0.34, allocations: 68 kB / 493.6 MB, free: 3.59 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * Single equations (assignments): 28 * Array equations: 0 * 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 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001278/0.3401, allocations: 111.1 kB / 493.8 MB, free: 3.473 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000572/0.3407, allocations: 346.4 kB / 494.1 MB, free: 3.121 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3407, allocations: 0 / 494.1 MB, free: 3.121 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003166/0.341, allocations: 239.7 kB / 494.3 MB, free: 2.875 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000344/0.3414, allocations: 36.16 kB / 494.4 MB, free: 2.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001201/0.3426, allocations: 0.875 MB / 495.2 MB, free: 1.93 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002903/0.3429, allocations: 0.7602 MB / 496 MB, free: 1.145 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.465e-05/0.343, allocations: 26.28 kB / 496 MB, free: 1.113 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.808e-05/0.3431, allocations: 19.44 kB / 496 MB, free: 1.094 MB / 362.7 MB Notification: Performance of SimCode: time 3.8e-07/0.3431, allocations: 4 kB / 496 MB, free: 1.09 MB / 362.7 MB Notification: Performance of Templates: time 0.005085/0.3482, allocations: 2.418 MB / 498.5 MB, free: 14.69 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches