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.001764/0.001764, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.002136/0.002136, allocations: 217.7 kB / 24.5 MB, free: 4.133 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.473/1.473, allocations: 230.5 MB / 258.1 MB, free: 8.012 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.001981/0.001981, allocations: 63.89 kB / 379 MB, free: 2.531 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2737, allocations: 53.4 MB / 432.4 MB, free: 6.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00257/0.2763, allocations: 1.203 MB / 433.6 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003681/0.28, allocations: 2.207 MB / 435.8 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.157e-05/0.28, allocations: 0 / 435.8 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.141e-05/0.28, allocations: 4 kB / 435.8 MB, free: 3.34 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.001441/0.2815, allocations: 486.1 kB / 436.3 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.57e-05/0.2815, allocations: 0 / 436.3 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.582e-05/0.2815, allocations: 15.92 kB / 436.3 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.204e-05/0.2816, allocations: 0 / 436.3 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.291e-05/0.2816, allocations: 4 kB / 436.3 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000413/0.282, allocations: 11.92 kB / 436.3 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.061e-05/0.282, allocations: 0 / 436.3 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000979/0.283, allocations: 0.519 MB / 436.8 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.36e-05/0.283, allocations: 3.984 kB / 436.9 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.682e-05/0.2831, allocations: 7.938 kB / 436.9 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006862/0.2837, allocations: 380.4 kB / 437.2 MB, free: 1.938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2837, allocations: 4 kB / 437.2 MB, free: 1.934 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2837, allocations: 0 / 437.2 MB, free: 1.934 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.2838, allocations: 0 / 437.2 MB, free: 1.934 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.0005445/0.2843, allocations: 345.4 kB / 437.6 MB, free: 1.566 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.2843, allocations: 12.03 kB / 437.6 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.897e-05/0.2844, allocations: 80.17 kB / 437.7 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/0.2846, allocations: 185.8 kB / 437.8 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.191e-05/0.2847, allocations: 158.9 kB / 438 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.27e-05/0.2847, allocations: 154.9 kB / 438.1 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.948e-05/0.2848, allocations: 109.2 kB / 438.3 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.563e-05/0.2849, allocations: 75.28 kB / 438.3 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.293e-05/0.2849, allocations: 154.6 kB / 438.5 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.077e-05/0.285, allocations: 150.6 kB / 438.6 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.84e-05/0.2851, allocations: 154.6 kB / 438.8 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000336/0.2854, allocations: 421 kB / 439.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001012/0.2855, allocations: 169.1 kB / 439.4 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.008e-05/0.2855, allocations: 80.14 kB / 439.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.676e-05/0.2856, allocations: 83.22 kB / 439.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001544/0.2857, allocations: 47.36 kB / 439.6 MB, free: 15.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 4.098e-06/0.2857, allocations: 3.984 kB / 439.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001403/0.2859, allocations: 37.62 kB / 439.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.367e-05/0.2859, allocations: 55.41 kB / 439.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.178e-05/0.286, allocations: 105.8 kB / 439.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.286, allocations: 29.83 kB / 439.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.485e-05/0.2861, allocations: 84.14 kB / 439.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.517e-05/0.2861, allocations: 3.953 kB / 439.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.041e-05/0.2861, allocations: 13.72 kB / 439.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.2863, allocations: 310.8 kB / 440.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.109e-05/0.2863, allocations: 4 kB / 440.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.709e-06/0.2863, allocations: 0 / 440.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.346e-05/0.2863, allocations: 8.922 kB / 440.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2863, allocations: 4 kB / 440.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.278e-05/0.2864, allocations: 41.56 kB / 440.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.2864, allocations: 6.5 kB / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.2864, allocations: 0 / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.2864, allocations: 0 / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.026e-05/0.2864, allocations: 4 kB / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.2864, allocations: 0 / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.881e-05/0.2864, allocations: 4 kB / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.72e-06/0.2864, allocations: 0 / 440.3 MB, free: 14.71 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.418e-05/0.2865, allocations: 109.9 kB / 440.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.437e-05/0.2865, allocations: 7.938 kB / 440.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.093e-05/0.2866, allocations: 11.09 kB / 440.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.2866, allocations: 0 / 440.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2866, allocations: 0 / 440.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.2866, allocations: 0 / 440.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001285/0.2867, allocations: 124.8 kB / 440.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.2867, allocations: 0 / 440.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.461e-06/0.2867, allocations: 3.938 kB / 440.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.2867, allocations: 0 / 440.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.2867, allocations: 8 kB / 440.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.2867, allocations: 4 kB / 440.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.2867, allocations: 0 / 440.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.234e-05/0.2868, allocations: 53.08 kB / 440.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.345e-05/0.2868, allocations: 15.92 kB / 440.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.236e-05/0.2868, allocations: 0 / 440.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.156e-05/0.2868, allocations: 0 / 440.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.948e-06/0.2868, allocations: 4.031 kB / 440.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-06/0.2868, allocations: 3.938 kB / 440.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.03e-05/0.2869, allocations: 83.22 kB / 440.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2869, allocations: 0 / 440.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004777/0.2874, allocations: 155.5 kB / 440.8 MB, free: 14.06 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.001157/0.2885, allocations: 490.5 kB / 441.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.553e-05/0.2886, allocations: 11.92 kB / 441.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2886, allocations: 0 / 441.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.119e-06/0.2886, allocations: 0 / 441.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001463/0.2888, allocations: 6.75 kB / 441.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002992/0.2891, allocations: 128.8 kB / 441.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003036/0.2894, allocations: 0.6729 MB / 442.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.849e-05/0.2894, allocations: 15.42 kB / 442.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2894, allocations: 0 / 442.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of Templates: time 0.006101/0.2955, allocations: 3.386 MB / 445.5 MB, free: 9.352 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/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_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: 7.990809489972889]