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.001296/0.001296, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001431/0.001431, allocations: 214.6 kB / 23.74 MB, free: 4.656 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.502/1.502, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.001675/0.001675, allocations: 51.92 kB / 378.2 MB, free: 2.762 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2562/0.2579, allocations: 53.36 MB / 431.6 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002742/0.2606, allocations: 1.207 MB / 432.8 MB, free: 5.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003857/0.2645, allocations: 2.2 MB / 435 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.644e-05/0.2645, allocations: 0 / 435 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.705e-05/0.2645, allocations: 0 / 435 MB, free: 3.543 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.001482/0.266, allocations: 481.5 kB / 435.5 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.934e-05/0.266, allocations: 0 / 435.5 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.208e-05/0.2661, allocations: 11.92 kB / 435.5 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.301e-05/0.2661, allocations: 7.984 kB / 435.5 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.839e-05/0.2662, allocations: 7.938 kB / 435.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001398/0.2663, allocations: 10.91 kB / 435.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.999e-06/0.2663, allocations: 0 / 435.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009415/0.2673, allocations: 0.5151 MB / 436 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.303e-05/0.2673, allocations: 11.92 kB / 436 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.088e-05/0.2673, allocations: 0 / 436 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005789/0.2679, allocations: 384.4 kB / 436.4 MB, free: 2.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2679, allocations: 4 kB / 436.4 MB, free: 2.137 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2679, allocations: 0 / 436.4 MB, free: 2.137 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.2679, allocations: 0 / 436.4 MB, free: 2.137 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.0004681/0.2684, allocations: 345.4 kB / 436.8 MB, free: 1.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.2684, allocations: 12.02 kB / 436.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.109e-05/0.2685, allocations: 84.17 kB / 436.9 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001702/0.2686, allocations: 185.8 kB / 437 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.666e-05/0.2687, allocations: 154.9 kB / 437.2 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.924e-05/0.2688, allocations: 158.6 kB / 437.3 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.93e-05/0.2688, allocations: 101 kB / 437.4 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.946e-05/0.2689, allocations: 75.28 kB / 437.5 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.997e-05/0.2689, allocations: 150.6 kB / 437.7 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.645e-05/0.269, allocations: 154.5 kB / 437.8 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.422e-05/0.2691, allocations: 158.6 kB / 438 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003065/0.2694, allocations: 413 kB / 438.4 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001207/0.2695, allocations: 177.1 kB / 438.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.229e-05/0.2695, allocations: 84.08 kB / 438.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.775e-05/0.2696, allocations: 83.28 kB / 438.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001515/0.2697, allocations: 43.41 kB / 438.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.364e-06/0.2697, allocations: 0 / 438.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000133/0.2699, allocations: 33.64 kB / 438.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/0.2699, allocations: 55.39 kB / 438.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.903e-05/0.27, allocations: 101.9 kB / 438.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.445e-05/0.27, allocations: 33.77 kB / 439 MB, free: 15.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.56e-05/0.2701, allocations: 80.14 kB / 439 MB, free: 15.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.822e-05/0.2701, allocations: 11.95 kB / 439.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.27e-05/0.2701, allocations: 13.7 kB / 439.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.2703, allocations: 310.8 kB / 439.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.526e-06/0.2703, allocations: 0 / 439.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.943e-06/0.2703, allocations: 4 kB / 439.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.509e-05/0.2703, allocations: 12.86 kB / 439.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2703, allocations: 0 / 439.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.975e-05/0.2704, allocations: 41.64 kB / 439.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.2704, allocations: 4 kB / 439.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.2704, allocations: 0 / 439.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.2704, allocations: 7.922 kB / 439.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.741e-05/0.2704, allocations: 0 / 439.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/0.2704, allocations: 0 / 439.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.582e-05/0.2704, allocations: 4 kB / 439.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.779e-06/0.2704, allocations: 0 / 439.4 MB, free: 14.91 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.595e-05/0.2705, allocations: 113.8 kB / 439.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.027e-06/0.2705, allocations: 0 / 439.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.397e-05/0.2706, allocations: 11.11 kB / 439.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.2706, allocations: 0 / 439.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.2706, allocations: 0 / 439.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.2706, allocations: 0 / 439.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001215/0.2707, allocations: 128.7 kB / 439.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.2707, allocations: 0 / 439.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.296e-06/0.2707, allocations: 0 / 439.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.2707, allocations: 0 / 439.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.622e-06/0.2707, allocations: 11.94 kB / 439.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.2707, allocations: 3.984 kB / 439.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.2707, allocations: 4 kB / 439.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.312e-05/0.2708, allocations: 57.08 kB / 439.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.338e-06/0.2708, allocations: 0 / 439.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.382e-05/0.2708, allocations: 4 kB / 439.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.198e-05/0.2708, allocations: 0 / 439.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.299e-05/0.2708, allocations: 8.016 kB / 439.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-06/0.2708, allocations: 0 / 439.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.636e-05/0.2709, allocations: 83.22 kB / 439.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2709, allocations: 0 / 439.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004437/0.2713, allocations: 147.5 kB / 440 MB, free: 14.28 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.001137/0.2725, allocations: 0.4964 MB / 440.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.561e-05/0.2725, allocations: 7.938 kB / 440.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2725, allocations: 0 / 440.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.945e-06/0.2725, allocations: 4 kB / 440.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001408/0.2727, allocations: 11.92 kB / 440.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002316/0.2729, allocations: 91.14 kB / 440.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.2732, allocations: 0.6807 MB / 441.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.464e-05/0.2733, allocations: 11.92 kB / 441.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.24e-05/0.2733, allocations: 11.44 kB / 441.3 MB, free: 12.97 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2733, allocations: 0 / 441.3 MB, free: 12.97 MB / 350.1 MB Notification: Performance of Templates: time 0.007626/0.2809, allocations: 3.144 MB / 444.5 MB, free: 9.828 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.651002262951806]