Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001264/0.001264, allocations: 105.4 kB / 19.8 MB, free: 2.516 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.001424/0.001424, allocations: 213.4 kB / 23 MB, free: 5.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 230.2 MB / 256.2 MB, free: 8.551 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002144/0.002144, allocations: 63.89 kB / 376.4 MB, free: 3.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2647, allocations: 53.32 MB / 429.8 MB, free: 7.574 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002236/0.267, allocations: 1.21 MB / 431 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003683/0.2707, allocations: 2.163 MB / 433.1 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.457e-05/0.2707, allocations: 0 / 433.1 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.466e-05/0.2707, allocations: 0 / 433.1 MB, free: 4.184 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.001399/0.2721, allocations: 477.9 kB / 433.6 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.423e-05/0.2721, allocations: 0 / 433.6 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.258e-05/0.2722, allocations: 15.92 kB / 433.6 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.004e-05/0.2722, allocations: 8 kB / 433.6 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.385e-05/0.2723, allocations: 7.984 kB / 433.6 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008128/0.2804, allocations: 7.938 kB / 433.6 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.118e-05/0.2804, allocations: 0 / 433.6 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001233/0.2816, allocations: 0.5112 MB / 434.2 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.041e-05/0.2816, allocations: 0 / 434.2 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.102e-05/0.2817, allocations: 7.922 kB / 434.2 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006347/0.2823, allocations: 388.3 kB / 434.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2823, allocations: 0 / 434.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.51e-07/0.2823, allocations: 0 / 434.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.728e-06/0.2823, allocations: 0 / 434.5 MB, free: 2.785 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.0004448/0.2828, allocations: 430.5 kB / 435 MB, free: 2.316 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.632e-05/0.2828, allocations: 8.031 kB / 435 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.716e-05/0.2828, allocations: 80.22 kB / 435 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001549/0.283, allocations: 243.7 kB / 435.3 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.83e-05/0.2831, allocations: 150.9 kB / 435.4 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.984e-05/0.2831, allocations: 154.9 kB / 435.6 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.2832, allocations: 113.2 kB / 435.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.385e-05/0.2833, allocations: 75.28 kB / 435.8 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.166e-05/0.2833, allocations: 150.6 kB / 435.9 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.075e-05/0.2834, allocations: 150.6 kB / 436.1 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.993e-05/0.2835, allocations: 150.6 kB / 436.2 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003418/0.2838, allocations: 453.9 kB / 436.7 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001022/0.2839, allocations: 169.1 kB / 436.8 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.115e-05/0.284, allocations: 84.14 kB / 436.9 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.732e-05/0.284, allocations: 75.28 kB / 437 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001586/0.2842, allocations: 55.34 kB / 437 MB, free: 124 kB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 1.954e-06/0.2842, allocations: 4 kB / 437 MB, free: 120 kB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001326/0.2843, allocations: 33.64 kB / 437.1 MB, free: 80 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.999e-05/0.2843, allocations: 59.33 kB / 437.1 MB, free: 8 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.2845, allocations: 101.9 kB / 437.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.2845, allocations: 25.7 kB / 437.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.204e-05/0.2845, allocations: 84.14 kB / 437.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.773e-05/0.2845, allocations: 4.078 kB / 437.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.857e-05/0.2846, allocations: 13.72 kB / 437.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.2847, allocations: 318.8 kB / 437.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.638e-06/0.2847, allocations: 0 / 437.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.398e-06/0.2847, allocations: 0 / 437.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.399e-05/0.2848, allocations: 8.859 kB / 437.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.2848, allocations: 0 / 437.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.795e-05/0.2848, allocations: 41.77 kB / 437.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.2848, allocations: 12.09 kB / 437.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.2848, allocations: 0 / 437.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.2849, allocations: 0 / 437.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.88e-05/0.2849, allocations: 7.969 kB / 437.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.2849, allocations: 0 / 437.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.621e-05/0.2849, allocations: 0 / 437.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.2849, allocations: 0 / 437.7 MB, free: 15.36 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 8.132e-05/0.285, allocations: 113.8 kB / 437.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.092e-05/0.285, allocations: 3.938 kB / 437.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.434e-05/0.285, allocations: 11.08 kB / 437.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.285, allocations: 0 / 437.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/0.285, allocations: 4 kB / 437.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.285, allocations: 0 / 437.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001507/0.2852, allocations: 149.7 kB / 438 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.2852, allocations: 0 / 438 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.354e-06/0.2852, allocations: 7.938 kB / 438 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.2852, allocations: 0 / 438 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.221e-06/0.2852, allocations: 0 / 438 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.2852, allocations: 3.984 kB / 438 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2852, allocations: 0 / 438 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.312e-05/0.2853, allocations: 65.08 kB / 438.1 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.544e-05/0.2853, allocations: 81.05 kB / 438.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.2854, allocations: 0 / 438.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.2e-05/0.2854, allocations: 0 / 438.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.394e-05/0.2854, allocations: 7.922 kB / 438.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.2854, allocations: 0 / 438.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.956e-05/0.2854, allocations: 83.28 kB / 438.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2854, allocations: 4.031 kB / 438.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004645/0.2859, allocations: 147.5 kB / 438.4 MB, free: 14.59 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.001187/0.2871, allocations: 0.4953 MB / 438.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.675e-05/0.2872, allocations: 4 kB / 438.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.2872, allocations: 0 / 438.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.196e-05/0.2872, allocations: 7.938 kB / 438.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001402/0.2873, allocations: 7.984 kB / 438.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002718/0.2876, allocations: 98.66 kB / 439 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.288, allocations: 0.6808 MB / 439.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.194e-05/0.288, allocations: 7.984 kB / 439.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.759e-05/0.288, allocations: 15.44 kB / 439.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.288, allocations: 0 / 439.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of Templates: time 0.007451/0.2955, allocations: 3.135 MB / 442.8 MB, free: 10.13 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.4495574021711946]