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.001311/0.001311, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001455/0.001455, allocations: 207.6 kB / 23.73 MB, free: 4.379 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.497/1.497, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.001597/0.001597, allocations: 47.92 kB / 378.2 MB, free: 2.523 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3226, allocations: 53.37 MB / 431.5 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002355/0.3249, allocations: 1.214 MB / 432.8 MB, free: 5.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003643/0.3286, allocations: 2.088 MB / 434.8 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.37e-05/0.3286, allocations: 4 kB / 434.9 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.792e-05/0.3286, allocations: 0 / 434.9 MB, free: 3.43 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.001532/0.3301, allocations: 478.5 kB / 435.3 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.877e-05/0.3302, allocations: 3.984 kB / 435.3 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.656e-05/0.3302, allocations: 11.94 kB / 435.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.169e-05/0.3303, allocations: 0 / 435.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.136e-05/0.3303, allocations: 11.88 kB / 435.3 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008061/0.3384, allocations: 7.984 kB / 435.4 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.398e-05/0.3384, allocations: 4 kB / 435.4 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001244/0.3396, allocations: 0.4995 MB / 435.9 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.052e-05/0.3396, allocations: 3.984 kB / 435.9 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.789e-05/0.3397, allocations: 7.938 kB / 435.9 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006814/0.3403, allocations: 381.3 kB / 436.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.3403, allocations: 0 / 436.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.3404, allocations: 0 / 436.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.3404, allocations: 0 / 436.2 MB, free: 2.043 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.0005351/0.3409, allocations: 345.4 kB / 436.6 MB, free: 1.676 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.3409, allocations: 8.031 kB / 436.6 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.718e-05/0.341, allocations: 84.17 kB / 436.7 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001923/0.3412, allocations: 189.8 kB / 436.9 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.64e-05/0.3413, allocations: 150.9 kB / 437 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.391e-05/0.3414, allocations: 154.7 kB / 437.2 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.049e-05/0.3415, allocations: 101 kB / 437.3 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.79e-05/0.3415, allocations: 83.28 kB / 437.3 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.046e-05/0.3416, allocations: 154.5 kB / 437.5 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.056e-05/0.3417, allocations: 154.5 kB / 437.6 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.047e-05/0.3417, allocations: 150.6 kB / 437.8 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003072/0.342, allocations: 401.6 kB / 438.2 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001269/0.3422, allocations: 169.1 kB / 438.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.021e-05/0.3422, allocations: 84.14 kB / 438.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.194e-05/0.3423, allocations: 79.22 kB / 438.5 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002227/0.3425, allocations: 47.34 kB / 438.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.614e-06/0.3425, allocations: 0 / 438.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.00017/0.3427, allocations: 37.7 kB / 438.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.3427, allocations: 55.34 kB / 438.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.3428, allocations: 101.8 kB / 438.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.3428, allocations: 29.7 kB / 438.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.898e-05/0.3429, allocations: 80.14 kB / 438.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.652e-05/0.3429, allocations: 8.078 kB / 438.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.735e-05/0.3429, allocations: 9.719 kB / 438.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.3431, allocations: 318.8 kB / 439.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.018e-05/0.3431, allocations: 0 / 439.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.669e-06/0.3431, allocations: 0 / 439.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.77e-05/0.3431, allocations: 12.84 kB / 439.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3431, allocations: 0 / 439.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.803e-05/0.3432, allocations: 33.64 kB / 439.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.3432, allocations: 11.94 kB / 439.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.3432, allocations: 96 / 439.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.3432, allocations: 7.938 kB / 439.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.547e-05/0.3432, allocations: 0 / 439.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.3433, allocations: 0 / 439.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.646e-05/0.3433, allocations: 0 / 439.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.3433, allocations: 0 / 439.2 MB, free: 14.86 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 0.0001046/0.3434, allocations: 117.8 kB / 439.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.208e-05/0.3434, allocations: 3.938 kB / 439.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.368e-05/0.3434, allocations: 11.11 kB / 439.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.3434, allocations: 0 / 439.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3434, allocations: 0 / 439.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.3434, allocations: 4 kB / 439.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001167/0.3436, allocations: 101.3 kB / 439.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3436, allocations: 0 / 439.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.758e-06/0.3436, allocations: 3.938 kB / 439.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.3436, allocations: 3.938 kB / 439.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.3436, allocations: 4 kB / 439.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.3436, allocations: 0 / 439.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.3436, allocations: 0 / 439.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.707e-05/0.3437, allocations: 61.27 kB / 439.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.353e-05/0.3437, allocations: 11.91 kB / 439.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.577e-05/0.3437, allocations: 8.031 kB / 439.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.156e-05/0.3437, allocations: 0 / 439.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.769e-06/0.3437, allocations: 0 / 439.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-06/0.3437, allocations: 0 / 439.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.307e-05/0.3438, allocations: 83.28 kB / 439.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3438, allocations: 0 / 439.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004617/0.3442, allocations: 151.5 kB / 439.8 MB, free: 14.25 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.001248/0.3455, allocations: 0.504 MB / 440.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.496e-05/0.3456, allocations: 7.984 kB / 440.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3456, allocations: 0 / 440.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.034e-05/0.3456, allocations: 7.938 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.0001486/0.3457, allocations: 0 / 440.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003313/0.3461, allocations: 106.9 kB / 440.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.061e-05/0.3461, allocations: 59.48 kB / 440.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.78e-05/0.3462, allocations: 7.984 kB / 440.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.853e-05/0.3462, allocations: 11.44 kB / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3462, allocations: 0 / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of Templates: time 0.007666/0.3539, allocations: 3.163 MB / 443.7 MB, free: 10.41 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.887979101855308]