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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001175/0.001175, allocations: 114.3 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001267/0.001267, allocations: 210 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2636, allocations: 50.54 MB / 409.9 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002139/0.2658, allocations: 1.203 MB / 411.1 MB, free: 364 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003026/0.2689, allocations: 2.073 MB / 413.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.416e-05/0.2689, allocations: 0 / 413.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.729e-05/0.269, allocations: 0 / 413.2 MB, free: 14.27 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.001284/0.2703, allocations: 477.8 kB / 413.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.332e-05/0.2703, allocations: 4 kB / 413.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.45e-05/0.2704, allocations: 11.94 kB / 413.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.011e-05/0.2704, allocations: 0 / 413.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.38e-05/0.2705, allocations: 4 kB / 413.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.2706, allocations: 15.97 kB / 413.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.168e-05/0.2706, allocations: 0 / 413.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007759/0.2714, allocations: 0.5111 MB / 414.2 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.518e-05/0.2714, allocations: 11.92 kB / 414.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.094e-05/0.2714, allocations: 0 / 414.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005324/0.272, allocations: 375.4 kB / 414.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.272, allocations: 4 kB / 414.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.272, allocations: 0 / 414.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.272, allocations: 0 / 414.6 MB, free: 12.88 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.0004651/0.2725, allocations: 419.3 kB / 415 MB, free: 12.42 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.2725, allocations: 12.02 kB / 415 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.372e-05/0.2726, allocations: 80.12 kB / 415.1 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001649/0.2728, allocations: 239.7 kB / 415.3 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.546e-05/0.2728, allocations: 158.9 kB / 415.5 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.888e-05/0.2729, allocations: 158.7 kB / 415.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.512e-05/0.273, allocations: 105 kB / 415.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.73e-05/0.273, allocations: 75.28 kB / 415.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.721e-05/0.2731, allocations: 154.5 kB / 415.9 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.084e-05/0.2731, allocations: 150.6 kB / 416.1 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.771e-05/0.2732, allocations: 154.6 kB / 416.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002877/0.2735, allocations: 453.9 kB / 416.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.939e-05/0.2736, allocations: 165.1 kB / 416.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.264e-05/0.2736, allocations: 84.12 kB / 416.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.774e-05/0.2737, allocations: 83.28 kB / 417 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001567/0.2738, allocations: 47.41 kB / 417 MB, free: 10.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 4.208e-06/0.2738, allocations: 0 / 417 MB, free: 10.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001352/0.274, allocations: 41.62 kB / 417.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/0.274, allocations: 51.41 kB / 417.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.114e-05/0.2741, allocations: 97.86 kB / 417.2 MB, free: 10 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.166e-05/0.2741, allocations: 29.83 kB / 417.3 MB, free: 9.969 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.847e-05/0.2742, allocations: 84.14 kB / 417.3 MB, free: 9.883 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.2742, allocations: 0 / 417.3 MB, free: 9.883 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.885e-05/0.2742, allocations: 21.64 kB / 417.4 MB, free: 9.855 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.2743, allocations: 314.8 kB / 417.7 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.496e-06/0.2744, allocations: 0 / 417.7 MB, free: 9.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.388e-06/0.2744, allocations: 0 / 417.7 MB, free: 9.539 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.176e-05/0.2744, allocations: 12.8 kB / 417.7 MB, free: 9.523 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.055e-05/0.2744, allocations: 8.062 kB / 417.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.171e-05/0.2745, allocations: 37.55 kB / 417.7 MB, free: 9.473 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.2745, allocations: 7.984 kB / 417.7 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.2745, allocations: 4 kB / 417.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.2745, allocations: 0 / 417.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.242e-05/0.2745, allocations: 0 / 417.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.2746, allocations: 0 / 417.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.777e-05/0.2746, allocations: 4 kB / 417.7 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-06/0.2746, allocations: 3.938 kB / 417.8 MB, free: 9.453 MB / 334.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.542e-05/0.2747, allocations: 121.8 kB / 417.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-06/0.2747, allocations: 0 / 417.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.465e-05/0.2747, allocations: 7.266 kB / 417.9 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.2747, allocations: 3.984 kB / 417.9 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.2747, allocations: 3.984 kB / 417.9 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.2747, allocations: 4 kB / 417.9 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.2749, allocations: 149.6 kB / 418 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.2749, allocations: 3.938 kB / 418 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.911e-06/0.2749, allocations: 3.984 kB / 418 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.2749, allocations: 0 / 418 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.2749, allocations: 8 kB / 418 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.2749, allocations: 0 / 418 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2749, allocations: 0 / 418 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.951e-05/0.275, allocations: 53.08 kB / 418.1 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.446e-05/0.275, allocations: 85.11 kB / 418.2 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.2751, allocations: 3.984 kB / 418.2 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.206e-05/0.2751, allocations: 0 / 418.2 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.642e-05/0.2751, allocations: 4.031 kB / 418.2 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-06/0.2751, allocations: 0 / 418.2 MB, free: 8.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.285e-05/0.2752, allocations: 79.28 kB / 418.3 MB, free: 8.832 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2752, allocations: 0 / 418.3 MB, free: 8.832 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004452/0.2756, allocations: 155.9 kB / 418.4 MB, free: 8.68 MB / 334.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.000997/0.2766, allocations: 0.4915 MB / 418.9 MB, free: 8.238 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 6.492e-05/0.2767, allocations: 7.922 kB / 418.9 MB, free: 8.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2767, allocations: 4 kB / 418.9 MB, free: 8.227 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.93e-06/0.2767, allocations: 0 / 418.9 MB, free: 8.227 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.2769, allocations: 3.938 kB / 418.9 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002483/0.2771, allocations: 128.6 kB / 419.1 MB, free: 8.066 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.2774, allocations: 0.6768 MB / 419.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.312e-05/0.2774, allocations: 11.44 kB / 419.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2774, allocations: 3.938 kB / 419.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of Templates: time 0.005692/0.2831, allocations: 3.405 MB / 423.2 MB, free: 3.941 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches