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.001624/0.001624, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.002002/0.002002, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.499/1.499, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001578/0.001578, allocations: 47.92 kB / 373.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1152, allocations: 53.33 MB / 426.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002488/0.1176, allocations: 1.214 MB / 428 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0034/0.121, allocations: 2.082 MB / 430.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.45e-05/0.1211, allocations: 4 kB / 430.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.383e-05/0.1211, allocations: 3.938 kB / 430.1 MB, free: 0.9883 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.001313/0.1224, allocations: 473.1 kB / 430.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.562e-05/0.1224, allocations: 3.984 kB / 430.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.081e-05/0.1225, allocations: 15.92 kB / 430.6 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.401e-05/0.1225, allocations: 7.938 kB / 430.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.308e-05/0.1226, allocations: 4 kB / 430.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/0.1227, allocations: 4 kB / 430.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.08e-05/0.1227, allocations: 0 / 430.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2235/0.3461, allocations: 0.5136 MB / 431.1 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.479e-05/0.3462, allocations: 3.25 kB / 431.1 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.03e-05/0.3462, allocations: 11.52 kB / 431.1 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001031/0.3472, allocations: 381.1 kB / 431.5 MB, free: 8.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3472, allocations: 1.312 kB / 431.5 MB, free: 8.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3472, allocations: 0 / 431.5 MB, free: 8.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.3473, allocations: 0.9688 kB / 431.5 MB, free: 8.332 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.0004743/0.3477, allocations: 418.5 kB / 431.9 MB, free: 7.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.3478, allocations: 10.22 kB / 431.9 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.041e-05/0.3478, allocations: 84.61 kB / 432 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.3479, allocations: 239.7 kB / 432.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.348, allocations: 155 kB / 432.4 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.994e-05/0.348, allocations: 155.3 kB / 432.5 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.228e-05/0.348, allocations: 111.6 kB / 432.6 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.3481, allocations: 75.88 kB / 432.7 MB, free: 7.102 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.935e-05/0.3481, allocations: 152.9 kB / 432.8 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.193e-05/0.3481, allocations: 151.3 kB / 433 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.434e-05/0.3481, allocations: 156.7 kB / 433.1 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002081/0.3483, allocations: 443.8 kB / 433.6 MB, free: 6.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.067e-05/0.3484, allocations: 175.7 kB / 433.7 MB, free: 6.008 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.492e-05/0.3484, allocations: 82.83 kB / 433.8 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.458e-05/0.3484, allocations: 76.12 kB / 433.9 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.604e-05/0.3485, allocations: 46.34 kB / 433.9 MB, free: 5.801 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.124e-06/0.3485, allocations: 0.5625 kB / 433.9 MB, free: 5.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001541/0.3487, allocations: 43.17 kB / 434 MB, free: 5.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.691e-05/0.3487, allocations: 52.66 kB / 434 MB, free: 5.707 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.575e-05/0.3488, allocations: 100.4 kB / 434.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.382e-06/0.3488, allocations: 26.83 kB / 434.2 MB, free: 5.578 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.417e-05/0.3488, allocations: 86.5 kB / 434.3 MB, free: 5.496 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.506e-05/0.3488, allocations: 4.734 kB / 434.3 MB, free: 5.492 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.194e-05/0.3489, allocations: 11.59 kB / 434.3 MB, free: 5.477 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.944e-05/0.3489, allocations: 313.5 kB / 434.6 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.899e-06/0.3489, allocations: 5.844 kB / 434.6 MB, free: 5.164 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.753e-06/0.3489, allocations: 4.812 kB / 434.6 MB, free: 5.164 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.237e-05/0.3489, allocations: 7.297 kB / 434.6 MB, free: 5.156 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3489, allocations: 3.375 kB / 434.6 MB, free: 5.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.324e-05/0.349, allocations: 39.5 kB / 434.6 MB, free: 5.121 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.349, allocations: 4.906 kB / 434.6 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.349, allocations: 0.875 kB / 434.6 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.349, allocations: 0 / 434.6 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.483e-05/0.3491, allocations: 2.328 kB / 434.6 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.3491, allocations: 5.312 kB / 434.6 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.816e-05/0.3491, allocations: 1.969 kB / 434.6 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-06/0.3491, allocations: 0 / 434.6 MB, free: 5.117 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 4.949e-05/0.3491, allocations: 116.2 kB / 434.8 MB, free: 5.004 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.093e-05/0.3492, allocations: 4.812 kB / 434.8 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.052e-05/0.3492, allocations: 5.531 kB / 434.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.3492, allocations: 1 kB / 434.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.3492, allocations: 0 / 434.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.3492, allocations: 2.969 kB / 434.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.443e-05/0.3493, allocations: 147.1 kB / 434.9 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3493, allocations: 7.688 kB / 434.9 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.118e-06/0.3493, allocations: 1.438 kB / 434.9 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.3493, allocations: 0.7031 kB / 434.9 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.3e-06/0.3493, allocations: 4.875 kB / 434.9 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.3493, allocations: 0 / 434.9 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3493, allocations: 1.938 kB / 434.9 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.439e-05/0.3493, allocations: 59.86 kB / 435 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.518e-05/0.3493, allocations: 81.75 kB / 435.1 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.145e-05/0.3494, allocations: 3 kB / 435.1 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.149e-05/0.3494, allocations: 7.938 kB / 435.1 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.049e-05/0.3494, allocations: 1.469 kB / 435.1 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-06/0.3494, allocations: 0 / 435.1 MB, free: 4.641 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.643e-05/0.3494, allocations: 87.55 kB / 435.2 MB, free: 4.566 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3494, allocations: 0 / 435.2 MB, free: 4.566 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004418/0.3498, allocations: 150.4 kB / 435.3 MB, free: 4.535 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.001082/0.3509, allocations: 0.4913 MB / 435.8 MB, free: 4.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.063e-05/0.351, allocations: 7.125 kB / 435.8 MB, free: 4.379 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.351, allocations: 0.6562 kB / 435.8 MB, free: 4.379 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.273e-06/0.351, allocations: 4.281 kB / 435.8 MB, free: 4.379 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001353/0.3511, allocations: 5.781 kB / 435.8 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002213/0.3514, allocations: 99.2 kB / 435.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.003e-05/0.3514, allocations: 0.6786 MB / 436.6 MB, free: 3.582 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.947e-05/0.3515, allocations: 13.34 kB / 436.6 MB, free: 3.578 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.767e-05/0.3515, allocations: 10.94 kB / 436.6 MB, free: 3.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3515, allocations: 0.7812 kB / 436.6 MB, free: 3.57 MB / 350.1 MB Notification: Performance of Templates: time 0.006897/0.3584, allocations: 3.135 MB / 439.8 MB, free: 3.27 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.785129472613335]