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.001301/0.001301, allocations: 115.1 kB / 18.45 MB, free: 4.566 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.001311/0.001311, allocations: 215.2 kB / 21.42 MB, free: 1.605 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.523/1.523, allocations: 230.6 MB / 254.8 MB, free: 15.07 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.001513/0.001513, allocations: 51.92 kB / 374.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.104, allocations: 53.33 MB / 427.5 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002321/0.1063, allocations: 1.203 MB / 428.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003278/0.1096, allocations: 2.102 MB / 430.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.106e-05/0.1096, allocations: 0 / 430.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.416e-05/0.1096, allocations: 0 / 430.8 MB, free: 0.9727 MB / 350.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.001261/0.1109, allocations: 470.5 kB / 431.2 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.137e-05/0.1109, allocations: 7.969 kB / 431.2 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.491e-05/0.111, allocations: 15.94 kB / 431.2 MB, free: 500 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.402e-05/0.111, allocations: 0 / 431.2 MB, free: 500 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.3e-05/0.111, allocations: 7.938 kB / 431.2 MB, free: 492 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000263/0.1113, allocations: 8 kB / 431.3 MB, free: 484 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.788e-06/0.1113, allocations: 0 / 431.3 MB, free: 484 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2148/0.3261, allocations: 0.509 MB / 431.8 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.126e-05/0.3261, allocations: 5 kB / 431.8 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.023e-05/0.3261, allocations: 8.641 kB / 431.8 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009604/0.3271, allocations: 376.2 kB / 432.1 MB, free: 8.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.3271, allocations: 1.531 kB / 432.1 MB, free: 8.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.3271, allocations: 0.9062 kB / 432.1 MB, free: 8.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.3271, allocations: 1 kB / 432.1 MB, free: 8.301 MB / 350.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.0004792/0.3276, allocations: 427.2 kB / 432.6 MB, free: 7.895 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.3276, allocations: 9.344 kB / 432.6 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.116e-05/0.3277, allocations: 82.67 kB / 432.7 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.3278, allocations: 246.3 kB / 432.9 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.3278, allocations: 153.6 kB / 433 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.719e-05/0.3279, allocations: 156.8 kB / 433.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.448e-05/0.3279, allocations: 106.7 kB / 433.3 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.3279, allocations: 78.16 kB / 433.4 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.511e-05/0.328, allocations: 150.6 kB / 433.5 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.575e-05/0.328, allocations: 154.2 kB / 433.7 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.425e-05/0.328, allocations: 154.5 kB / 433.8 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001845/0.3282, allocations: 446.7 kB / 434.3 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.397e-05/0.3283, allocations: 172.9 kB / 434.4 MB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.736e-05/0.3283, allocations: 82.77 kB / 434.5 MB, free: 5.891 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.567e-05/0.3283, allocations: 75.28 kB / 434.6 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000165/0.3284, allocations: 52.7 kB / 434.6 MB, free: 5.766 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.014e-06/0.3285, allocations: 0 / 434.6 MB, free: 5.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001373/0.3286, allocations: 42.27 kB / 434.7 MB, free: 5.734 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.367e-05/0.3286, allocations: 52.31 kB / 434.7 MB, free: 5.672 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.161e-05/0.3287, allocations: 100.6 kB / 434.8 MB, free: 5.574 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.161e-06/0.3287, allocations: 26.3 kB / 434.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.996e-05/0.3287, allocations: 84.05 kB / 434.9 MB, free: 5.461 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.423e-05/0.3287, allocations: 4.672 kB / 434.9 MB, free: 5.457 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.538e-05/0.3287, allocations: 14.38 kB / 435 MB, free: 5.441 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.085e-05/0.3288, allocations: 315.8 kB / 435.3 MB, free: 5.129 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.885e-06/0.3288, allocations: 0.875 kB / 435.3 MB, free: 5.129 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.441e-06/0.3288, allocations: 0.625 kB / 435.3 MB, free: 5.129 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.507e-05/0.3288, allocations: 15.64 kB / 435.3 MB, free: 5.121 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3288, allocations: 0 / 435.3 MB, free: 5.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.063e-05/0.3289, allocations: 37.5 kB / 435.3 MB, free: 5.086 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.3289, allocations: 5.531 kB / 435.3 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.3289, allocations: 0 / 435.3 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.3289, allocations: 2.344 kB / 435.3 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.094e-05/0.329, allocations: 0 / 435.3 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.329, allocations: 4.5 kB / 435.3 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.808e-05/0.329, allocations: 2.125 kB / 435.3 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.329, allocations: 1.312 kB / 435.3 MB, free: 5.082 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 5.187e-05/0.329, allocations: 117.5 kB / 435.4 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.18e-05/0.329, allocations: 8.141 kB / 435.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.472e-05/0.3291, allocations: 4.562 kB / 435.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.3291, allocations: 0 / 435.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3291, allocations: 0.5938 kB / 435.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3291, allocations: 1.094 kB / 435.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.708e-05/0.3292, allocations: 153.5 kB / 435.6 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.3292, allocations: 5.938 kB / 435.6 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.175e-06/0.3292, allocations: 0 / 435.6 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3292, allocations: 4.406 kB / 435.6 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.3292, allocations: 0.5312 kB / 435.6 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3292, allocations: 1.594 kB / 435.6 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3292, allocations: 2.625 kB / 435.6 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.466e-05/0.3292, allocations: 60.06 kB / 435.7 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.772e-05/0.3293, allocations: 82.11 kB / 435.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.426e-05/0.3293, allocations: 3.938 kB / 435.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.329e-05/0.3293, allocations: 1.25 kB / 435.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.604e-05/0.3293, allocations: 1.094 kB / 435.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-06/0.3293, allocations: 0 / 435.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.671e-05/0.3293, allocations: 83.62 kB / 435.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3293, allocations: 4.031 kB / 435.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005224/0.3299, allocations: 152.5 kB / 436 MB, free: 4.492 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.00115/0.331, allocations: 488.9 kB / 436.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.933e-05/0.3311, allocations: 14.97 kB / 436.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3311, allocations: 0 / 436.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.792e-06/0.3311, allocations: 5.938 kB / 436.5 MB, free: 4.336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000149/0.3313, allocations: 14.69 kB / 436.5 MB, free: 4.328 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002544/0.3315, allocations: 126.3 kB / 436.6 MB, free: 4.203 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001048/0.3316, allocations: 0.6723 MB / 437.3 MB, free: 3.508 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.881e-05/0.3316, allocations: 17.03 kB / 437.3 MB, free: 3.5 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3316, allocations: 128 / 437.3 MB, free: 3.5 MB / 350.1 MB Notification: Performance of Templates: time 0.007701/0.3393, allocations: 3.385 MB / 440.7 MB, free: 3.156 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/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: 8.084601728012785]