Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001901/0.001901, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002593/0.002593, allocations: 209.9 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.588/1.588, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001623/0.001623, allocations: 47.92 kB / 378.2 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2585, allocations: 53.38 MB / 431.6 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002333/0.2608, allocations: 1.203 MB / 432.8 MB, free: 5.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003801/0.2646, allocations: 2.092 MB / 434.8 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.307e-05/0.2646, allocations: 0 / 434.8 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.095e-05/0.2646, allocations: 0 / 434.8 MB, free: 3.422 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Utilities/Examples.mo:279:3-378:24:writable] Warning: Pure function 'Modelica.Utilities.Examples.readRealParameter' contains a call to impure function 'Modelica.Utilities.Streams.readLine'. Notification: Performance of NFTyping.typeBindings: time 0.001358/0.266, allocations: 478.5 kB / 435.3 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.593e-05/0.266, allocations: 4 kB / 435.3 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.003e-05/0.2661, allocations: 11.94 kB / 435.3 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.39e-05/0.2661, allocations: 0 / 435.3 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.643e-05/0.2661, allocations: 11.88 kB / 435.3 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.621e-05/0.2662, allocations: 11.97 kB / 435.4 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.02e-05/0.2662, allocations: 0 / 435.4 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008148/0.267, allocations: 487.5 kB / 435.8 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.417e-05/0.2671, allocations: 3.984 kB / 435.8 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.386e-05/0.2671, allocations: 7.875 kB / 435.8 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005602/0.2676, allocations: 381.4 kB / 436.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2676, allocations: 0 / 436.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2676, allocations: 0 / 436.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.2677, allocations: 0 / 436.2 MB, free: 2.059 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0004901/0.2681, allocations: 343.5 kB / 436.5 MB, free: 1.695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.2682, allocations: 8.031 kB / 436.6 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.749e-05/0.2683, allocations: 88.16 kB / 436.6 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001803/0.2684, allocations: 185.8 kB / 436.8 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.866e-05/0.2685, allocations: 150.9 kB / 437 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.07e-05/0.2686, allocations: 154.7 kB / 437.1 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.054e-05/0.2687, allocations: 108.9 kB / 437.2 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.446e-05/0.2687, allocations: 79.28 kB / 437.3 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.801e-05/0.2688, allocations: 154.6 kB / 437.5 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.19e-05/0.2689, allocations: 154.5 kB / 437.6 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.207e-05/0.2689, allocations: 150.6 kB / 437.8 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000355/0.2693, allocations: 397.6 kB / 438.1 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001187/0.2694, allocations: 173.1 kB / 438.3 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.243e-05/0.2695, allocations: 84.14 kB / 438.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.837e-05/0.2695, allocations: 75.28 kB / 438.5 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001619/0.2697, allocations: 47.34 kB / 438.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.244e-06/0.2697, allocations: 4 kB / 438.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001384/0.2698, allocations: 33.64 kB / 438.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.848e-05/0.2699, allocations: 55.41 kB / 438.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.27, allocations: 101.8 kB / 438.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.27, allocations: 25.7 kB / 438.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.088e-05/0.27, allocations: 88.14 kB / 438.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.389e-05/0.27, allocations: 3.953 kB / 438.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.868e-05/0.2701, allocations: 9.719 kB / 438.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.2702, allocations: 318.8 kB / 439.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.875e-06/0.2702, allocations: 0 / 439.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.669e-06/0.2702, allocations: 4.125 kB / 439.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.447e-05/0.2703, allocations: 12.86 kB / 439.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2703, allocations: 0 / 439.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.876e-05/0.2703, allocations: 37.58 kB / 439.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.2703, allocations: 8 kB / 439.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.2703, allocations: 0 / 439.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.2703, allocations: 3.938 kB / 439.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.005e-05/0.2704, allocations: 4 kB / 439.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.2704, allocations: 0 / 439.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.772e-05/0.2704, allocations: 8.078 kB / 439.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-06/0.2704, allocations: 0 / 439.2 MB, free: 14.87 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.379e-05/0.2705, allocations: 113.8 kB / 439.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.14e-05/0.2705, allocations: 3.938 kB / 439.3 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.3e-05/0.2705, allocations: 7.109 kB / 439.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.2705, allocations: 4 kB / 439.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2705, allocations: 0 / 439.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-06/0.2705, allocations: 3.938 kB / 439.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.2706, allocations: 105.3 kB / 439.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-06/0.2706, allocations: 4 kB / 439.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.085e-06/0.2706, allocations: 0 / 439.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.2706, allocations: 8.125 kB / 439.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.27e-06/0.2706, allocations: 0 / 439.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.2706, allocations: 0 / 439.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.2706, allocations: 0 / 439.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.552e-05/0.2707, allocations: 69.05 kB / 439.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.512e-06/0.2707, allocations: 3.938 kB / 439.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.098e-05/0.2707, allocations: 0 / 439.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.404e-05/0.2708, allocations: 4 kB / 439.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.308e-05/0.2708, allocations: 0 / 439.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-06/0.2708, allocations: 0 / 439.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.003e-05/0.2708, allocations: 91.3 kB / 439.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2708, allocations: 0 / 439.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004218/0.2712, allocations: 143.5 kB / 439.8 MB, free: 14.26 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001151/0.2724, allocations: 0.5058 MB / 440.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.242e-05/0.2725, allocations: 11.94 kB / 440.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2725, allocations: 3.938 kB / 440.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.125e-06/0.2725, allocations: 4 kB / 440.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001381/0.2726, allocations: 4 kB / 440.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002831/0.2729, allocations: 102.9 kB / 440.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.243e-05/0.273, allocations: 55.36 kB / 440.4 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.825e-05/0.273, allocations: 12.11 kB / 440.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.776e-05/0.273, allocations: 15.42 kB / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.273, allocations: 0 / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of Templates: time 0.007523/0.2805, allocations: 3.134 MB / 443.6 MB, free: 10.44 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.787090672180057]