Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001775/0.001775, allocations: 114.5 kB / 21.17 MB, free: 0.6172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002272/0.002272, allocations: 206.2 kB / 24.47 MB, free: 4.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.459/1.459, allocations: 230.4 MB / 258.1 MB, free: 8.148 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002014/0.002014, allocations: 71.83 kB / 378.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2514, allocations: 53.31 MB / 432 MB, free: 7.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002316/0.2538, allocations: 1.218 MB / 433.2 MB, free: 6.184 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003579/0.2573, allocations: 2.184 MB / 435.4 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.301e-05/0.2574, allocations: 0 / 435.4 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.317e-05/0.2574, allocations: 3.938 kB / 435.4 MB, free: 3.988 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.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.001248/0.2586, allocations: 468.3 kB / 435.9 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.194e-05/0.2587, allocations: 11.92 kB / 435.9 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.039e-05/0.2587, allocations: 4 kB / 435.9 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.244e-05/0.2587, allocations: 4 kB / 435.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.014e-05/0.2588, allocations: 0 / 435.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000239/0.259, allocations: 19.86 kB / 435.9 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.907e-06/0.259, allocations: 0 / 435.9 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008135/0.2598, allocations: 0.519 MB / 436.4 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.798e-06/0.2598, allocations: 0 / 436.4 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 1.957e-05/0.2599, allocations: 4 kB / 436.4 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005592/0.2604, allocations: 385 kB / 436.8 MB, free: 2.594 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.2604, allocations: 0 / 436.8 MB, free: 2.594 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2604, allocations: 4 kB / 436.8 MB, free: 2.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.91e-06/0.2604, allocations: 0 / 436.8 MB, free: 2.59 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.000529/0.261, allocations: 422.5 kB / 437.2 MB, free: 2.129 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.261, allocations: 12.03 kB / 437.2 MB, free: 2.117 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.731e-05/0.2611, allocations: 84.17 kB / 437.3 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002111/0.2613, allocations: 243.7 kB / 437.6 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.755e-05/0.2614, allocations: 150.9 kB / 437.7 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.429e-05/0.2614, allocations: 154.7 kB / 437.9 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.386e-05/0.2615, allocations: 101 kB / 438 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.731e-05/0.2616, allocations: 79.27 kB / 438 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.335e-05/0.2617, allocations: 158.6 kB / 438.2 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.58e-05/0.2617, allocations: 154.6 kB / 438.3 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.436e-05/0.2618, allocations: 154.5 kB / 438.5 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003336/0.2621, allocations: 442 kB / 438.9 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001166/0.2622, allocations: 173.1 kB / 439.1 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.529e-05/0.2623, allocations: 88.06 kB / 439.2 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.293e-05/0.2623, allocations: 79.22 kB / 439.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001473/0.2625, allocations: 43.36 kB / 439.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.134e-06/0.2625, allocations: 0 / 439.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001377/0.2626, allocations: 41.69 kB / 439.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/0.2627, allocations: 51.41 kB / 439.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.533e-05/0.2628, allocations: 97.86 kB / 439.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.746e-05/0.2628, allocations: 33.64 kB / 439.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.929e-05/0.2629, allocations: 88.06 kB / 439.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.761e-05/0.2629, allocations: 7.953 kB / 439.6 MB, free: 15.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.668e-05/0.2629, allocations: 9.719 kB / 439.6 MB, free: 15.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.2631, allocations: 310.8 kB / 439.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.098e-05/0.2631, allocations: 8.125 kB / 439.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.134e-06/0.2631, allocations: 4 kB / 439.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.265e-05/0.2631, allocations: 4.859 kB / 439.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2631, allocations: 0 / 439.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.951e-05/0.2632, allocations: 41.62 kB / 440 MB, free: 15.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.2632, allocations: 7.281 kB / 440 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.2632, allocations: 0 / 440 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.2632, allocations: 0 / 440 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.94e-05/0.2632, allocations: 8.031 kB / 440 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.2632, allocations: 4 kB / 440 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.545e-05/0.2632, allocations: 0 / 440 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.2632, allocations: 4 kB / 440 MB, free: 15.16 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 7.779e-05/0.2633, allocations: 109.8 kB / 440.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.076e-05/0.2633, allocations: 4 kB / 440.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.74e-05/0.2634, allocations: 15.06 kB / 440.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.2634, allocations: 0 / 440.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.2634, allocations: 0 / 440.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.2634, allocations: 4 kB / 440.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001369/0.2635, allocations: 149.6 kB / 440.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.2635, allocations: 0 / 440.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.33e-06/0.2635, allocations: 3.984 kB / 440.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.2635, allocations: 0 / 440.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-06/0.2635, allocations: 0 / 440.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.2635, allocations: 0 / 440.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2635, allocations: 0 / 440.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.363e-05/0.2636, allocations: 72.95 kB / 440.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.418e-05/0.2637, allocations: 81.28 kB / 440.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.127e-05/0.2637, allocations: 0 / 440.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.461e-05/0.2637, allocations: 4 kB / 440.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.017e-05/0.2637, allocations: 3.984 kB / 440.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-06/0.2637, allocations: 0 / 440.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.734e-05/0.2637, allocations: 83.28 kB / 440.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2637, allocations: 0 / 440.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004313/0.2642, allocations: 147.5 kB / 440.7 MB, free: 14.4 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.001107/0.2653, allocations: 0.4955 MB / 441.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.992e-05/0.2654, allocations: 7.984 kB / 441.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2654, allocations: 4.062 kB / 441.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.774e-06/0.2654, allocations: 4 kB / 441.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001338/0.2655, allocations: 3.938 kB / 441.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002329/0.2657, allocations: 106.7 kB / 441.3 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003102/0.266, allocations: 0.6729 MB / 442 MB, free: 13.13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.161e-05/0.2661, allocations: 12.05 kB / 442 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.252e-05/0.2661, allocations: 11.44 kB / 442 MB, free: 13.11 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2661, allocations: 3.938 kB / 442 MB, free: 13.11 MB / 350.1 MB Notification: Performance of Templates: time 0.00707/0.2732, allocations: 3.139 MB / 445.1 MB, free: 9.965 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.638623311184347]