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.001164/0.001164, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 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.005621/0.005621, allocations: 160.5 kB / 24.7 MB, free: 9.418 MB / 18.57 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 0.8756/0.8756, allocations: 177.1 MB / 205 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.413e-06/1.413e-06, allocations: 0 / 325.8 MB, free: 15.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.471e-05/2.612e-05, allocations: 2.281 kB / 325.8 MB, free: 15.47 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001501/0.001527, allocations: 1.213 MB / 327 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002364/0.00389, allocations: 2.098 MB / 329.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.204e-05/0.003912, allocations: 0 / 329.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.902e-05/0.003932, allocations: 7.984 kB / 329.1 MB, free: 12.13 MB / 298.7 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.0009827/0.004914, allocations: 473.8 kB / 329.6 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.113e-05/0.004935, allocations: 3.984 kB / 329.6 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.676e-05/0.004982, allocations: 11.94 kB / 329.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.688e-05/0.005019, allocations: 0 / 329.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.448e-05/0.005053, allocations: 7.938 kB / 329.6 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.516e-05/0.005129, allocations: 15.97 kB / 329.6 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.133e-05/0.00514, allocations: 4 kB / 329.6 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005582/0.005698, allocations: 491.2 kB / 330.1 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.472e-05/0.005713, allocations: 7.938 kB / 330.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.036e-05/0.005733, allocations: 8 kB / 330.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004531/0.006186, allocations: 459 kB / 330.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.00619, allocations: 0 / 330.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.006192, allocations: 0 / 330.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.598e-06/0.006197, allocations: 0 / 330.6 MB, free: 10.68 MB / 298.7 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.0003551/0.006552, allocations: 349.4 kB / 330.9 MB, free: 10.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.006587, allocations: 12.03 kB / 330.9 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.298e-05/0.00664, allocations: 84.17 kB / 331 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.006773, allocations: 189 kB / 331.2 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.171e-05/0.006815, allocations: 150.9 kB / 331.3 MB, free: 9.859 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.493e-05/0.00685, allocations: 154.9 kB / 331.5 MB, free: 9.707 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.358e-05/0.006903, allocations: 105.5 kB / 331.6 MB, free: 9.598 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.288e-05/0.006926, allocations: 79.22 kB / 331.7 MB, free: 9.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.177e-05/0.006968, allocations: 150.6 kB / 331.8 MB, free: 9.371 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.891e-05/0.007017, allocations: 150.6 kB / 331.9 MB, free: 9.223 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.478e-05/0.007062, allocations: 154.6 kB / 332.1 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00019/0.007252, allocations: 401.5 kB / 332.5 MB, free: 8.648 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.263e-05/0.007314, allocations: 165.1 kB / 332.7 MB, free: 8.477 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.571e-05/0.00734, allocations: 88.12 kB / 332.7 MB, free: 8.387 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/0.007363, allocations: 79.22 kB / 332.8 MB, free: 8.309 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001585/0.007521, allocations: 47.36 kB / 332.9 MB, free: 8.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.903e-06/0.007523, allocations: 0 / 332.9 MB, free: 8.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001283/0.007652, allocations: 41.62 kB / 332.9 MB, free: 8.203 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.239e-05/0.007684, allocations: 51.41 kB / 333 MB, free: 8.141 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.614e-05/0.00775, allocations: 101.9 kB / 333.1 MB, free: 8.031 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.044e-05/0.00776, allocations: 25.7 kB / 333.1 MB, free: 8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.809e-05/0.007789, allocations: 84.12 kB / 333.2 MB, free: 7.914 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.25e-05/0.007801, allocations: 4.125 kB / 333.2 MB, free: 7.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.262e-05/0.007824, allocations: 13.72 kB / 333.2 MB, free: 7.891 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.118e-05/0.007895, allocations: 314.8 kB / 333.5 MB, free: 7.574 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.586e-06/0.007903, allocations: 0 / 333.5 MB, free: 7.574 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.12e-06/0.007909, allocations: 4 kB / 333.5 MB, free: 7.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.069e-05/0.007929, allocations: 8.797 kB / 333.5 MB, free: 7.559 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.007931, allocations: 0 / 333.5 MB, free: 7.559 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.952e-05/0.007971, allocations: 41.64 kB / 333.5 MB, free: 7.512 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.007983, allocations: 4 kB / 333.5 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.007988, allocations: 8.031 kB / 333.6 MB, free: 7.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.008001, allocations: 0 / 333.6 MB, free: 7.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.254e-05/0.008024, allocations: 3.938 kB / 333.6 MB, free: 7.496 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.008028, allocations: 0 / 333.6 MB, free: 7.496 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.679e-05/0.008045, allocations: 4 kB / 333.6 MB, free: 7.492 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.00805, allocations: 0 / 333.6 MB, free: 7.492 MB / 298.7 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.773e-05/0.008108, allocations: 109.8 kB / 333.7 MB, free: 7.375 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.81e-06/0.008114, allocations: 4.188 kB / 333.7 MB, free: 7.371 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.773e-05/0.008142, allocations: 15.03 kB / 333.7 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.008145, allocations: 3.984 kB / 333.7 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.008149, allocations: 7.938 kB / 333.7 MB, free: 7.344 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.008151, allocations: 0 / 333.7 MB, free: 7.344 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.036e-05/0.008222, allocations: 97.33 kB / 333.8 MB, free: 7.219 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.008224, allocations: 4 kB / 333.8 MB, free: 7.215 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.547e-06/0.008227, allocations: 0 / 333.8 MB, free: 7.215 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.008229, allocations: 0 / 333.8 MB, free: 7.215 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.19e-06/0.008234, allocations: 0 / 333.8 MB, free: 7.215 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.008238, allocations: 7.938 kB / 333.8 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.008239, allocations: 3.984 kB / 333.8 MB, free: 7.203 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.944e-05/0.008289, allocations: 53.14 kB / 333.9 MB, free: 7.133 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.352e-06/0.008295, allocations: 4 kB / 333.9 MB, free: 7.129 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.917e-06/0.008304, allocations: 4.031 kB / 333.9 MB, free: 7.125 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.503e-06/0.00831, allocations: 3.938 kB / 333.9 MB, free: 7.121 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.295e-05/0.008323, allocations: 3.984 kB / 333.9 MB, free: 7.117 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-06/0.008326, allocations: 0 / 333.9 MB, free: 7.117 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.997e-05/0.008356, allocations: 91.22 kB / 334 MB, free: 7.027 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008356, allocations: 0 / 334 MB, free: 7.027 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003583/0.008714, allocations: 147.5 kB / 334.1 MB, free: 6.883 MB / 298.7 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.0007393/0.009453, allocations: 0.5416 MB / 334.6 MB, free: 6.414 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 6.714e-05/0.00952, allocations: 4 kB / 334.7 MB, free: 6.41 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.009522, allocations: 0 / 334.7 MB, free: 6.41 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.534e-06/0.009525, allocations: 0 / 334.7 MB, free: 6.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001061/0.009631, allocations: 7.234 kB / 334.7 MB, free: 6.406 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002369/0.009868, allocations: 135.1 kB / 334.8 MB, free: 6.242 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.467e-05/0.009902, allocations: 55.36 kB / 334.8 MB, free: 6.168 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.908e-05/0.009922, allocations: 20.48 kB / 334.9 MB, free: 6.148 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.009922, allocations: 0 / 334.9 MB, free: 6.148 MB / 298.7 MB Notification: Performance of Templates: time 0.004117/0.01404, allocations: 3.439 MB / 338.3 MB, free: 2.707 MB / 298.7 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: 5.098501055501401]