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.001842/0.001842, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001997/0.001997, allocations: 211.4 kB / 24.48 MB, free: 3.941 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 2.13/2.13, allocations: 230.6 MB / 258.3 MB, free: 7.773 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.002114/0.002114, allocations: 47.92 kB / 378.9 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3267, allocations: 53.37 MB / 432.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002799/0.3295, allocations: 1.207 MB / 433.5 MB, free: 5.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004289/0.3338, allocations: 2.084 MB / 435.6 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.212e-05/0.3338, allocations: 3.938 kB / 435.6 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.26e-05/0.3338, allocations: 3.984 kB / 435.6 MB, free: 3.387 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.001607/0.3355, allocations: 466.6 kB / 436.1 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.511e-05/0.3355, allocations: 11.92 kB / 436.1 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.621e-05/0.3355, allocations: 7.938 kB / 436.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.533e-05/0.3356, allocations: 4 kB / 436.1 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.37e-05/0.3356, allocations: 7.938 kB / 436.1 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.103e-05/0.3357, allocations: 0 / 436.1 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.657e-06/0.3357, allocations: 4 kB / 436.1 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009777/0.3367, allocations: 0.5034 MB / 436.6 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.236e-05/0.3367, allocations: 4 kB / 436.6 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.267e-05/0.3367, allocations: 11.91 kB / 436.6 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006564/0.3374, allocations: 373.8 kB / 437 MB, free: 2.016 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3374, allocations: 0 / 437 MB, free: 2.016 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3374, allocations: 4 kB / 437 MB, free: 2.012 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.3374, allocations: 0 / 437 MB, free: 2.012 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.0005258/0.3379, allocations: 347.4 kB / 437.3 MB, free: 1.645 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.3379, allocations: 8.031 kB / 437.3 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.182e-05/0.338, allocations: 80.17 kB / 437.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001783/0.3382, allocations: 197.8 kB / 437.6 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.08e-05/0.3383, allocations: 158.9 kB / 437.8 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.311e-05/0.3383, allocations: 154.7 kB / 437.9 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.445e-05/0.3384, allocations: 101 kB / 438 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.132e-05/0.3385, allocations: 75.28 kB / 438.1 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.903e-05/0.3385, allocations: 154.6 kB / 438.2 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.532e-05/0.3386, allocations: 150.6 kB / 438.4 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.736e-05/0.3387, allocations: 158.5 kB / 438.5 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003624/0.3391, allocations: 397.6 kB / 438.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001102/0.3392, allocations: 169.1 kB / 439.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.596e-05/0.3392, allocations: 84.14 kB / 439.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.068e-05/0.3393, allocations: 79.28 kB / 439.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001741/0.3394, allocations: 51.28 kB / 439.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.104e-06/0.3394, allocations: 0 / 439.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001444/0.3396, allocations: 33.7 kB / 439.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.808e-05/0.3396, allocations: 55.41 kB / 439.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.3397, allocations: 97.84 kB / 439.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.3398, allocations: 25.7 kB / 439.5 MB, free: 15.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.373e-05/0.3398, allocations: 88.14 kB / 439.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.582e-05/0.3398, allocations: 4.078 kB / 439.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.168e-05/0.3399, allocations: 13.72 kB / 439.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.34, allocations: 310.8 kB / 439.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.468e-06/0.34, allocations: 4 kB / 439.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.747e-05/0.34, allocations: 7.922 kB / 439.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.924e-05/0.3401, allocations: 12.86 kB / 439.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3401, allocations: 0 / 439.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.833e-05/0.3401, allocations: 33.64 kB / 440 MB, free: 14.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.3401, allocations: 4 kB / 440 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.3402, allocations: 4.188 kB / 440 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.3402, allocations: 4.094 kB / 440 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.089e-05/0.3402, allocations: 3.938 kB / 440 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.3402, allocations: 0 / 440 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.13e-05/0.3402, allocations: 3.984 kB / 440 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.3402, allocations: 0 / 440 MB, free: 14.82 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 9.656e-05/0.3403, allocations: 117.8 kB / 440.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.63e-05/0.3403, allocations: 3.938 kB / 440.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.966e-05/0.3404, allocations: 15.05 kB / 440.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.3404, allocations: 0 / 440.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3404, allocations: 4 kB / 440.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.3404, allocations: 4 kB / 440.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001211/0.3405, allocations: 101.3 kB / 440.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3405, allocations: 0 / 440.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.171e-06/0.3405, allocations: 4 kB / 440.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.3405, allocations: 7.875 kB / 440.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.571e-06/0.3405, allocations: 0 / 440.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.3405, allocations: 0 / 440.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3405, allocations: 0 / 440.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.809e-05/0.3406, allocations: 61.12 kB / 440.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.634e-06/0.3406, allocations: 3.938 kB / 440.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.3406, allocations: 4.031 kB / 440.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.527e-05/0.3407, allocations: 0 / 440.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.486e-05/0.3407, allocations: 4 kB / 440.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-06/0.3407, allocations: 0 / 440.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.369e-05/0.3407, allocations: 91.2 kB / 440.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3407, allocations: 0 / 440.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006288/0.3414, allocations: 147.5 kB / 440.5 MB, free: 14.2 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.001388/0.3428, allocations: 0.5097 MB / 441.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.567e-05/0.3428, allocations: 8 kB / 441.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3428, allocations: 0 / 441.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.302e-06/0.3429, allocations: 0 / 441.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001817/0.343, allocations: 4 kB / 441.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002814/0.3433, allocations: 102.9 kB / 441.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.669e-05/0.3434, allocations: 63.48 kB / 441.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.808e-05/0.3434, allocations: 7.984 kB / 441.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.062e-05/0.3434, allocations: 11.44 kB / 441.2 MB, free: 13.53 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.3434, allocations: 0 / 441.2 MB, free: 13.53 MB / 350.1 MB Notification: Performance of Templates: time 0.008869/0.3523, allocations: 3.153 MB / 444.4 MB, free: 10.37 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 -s cvode -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: 6.527766148996307]