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.001079/0.001079, allocations: 116.1 kB / 18.46 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001108/0.001108, allocations: 206.7 kB / 19.41 MB, free: 3.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 59.91 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.208, allocations: 50.54 MB / 409.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001922/0.21, allocations: 1.203 MB / 411.1 MB, free: 408 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002705/0.2127, allocations: 2.069 MB / 413.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.95e-05/0.2127, allocations: 7.875 kB / 413.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.69e-05/0.2128, allocations: 0 / 413.2 MB, free: 14.32 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.00106/0.2138, allocations: 470 kB / 413.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.334e-05/0.2139, allocations: 7.984 kB / 413.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.633e-05/0.2139, allocations: 11.92 kB / 413.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.29e-05/0.214, allocations: 4 kB / 413.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.646e-05/0.214, allocations: 8 kB / 413.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002106/0.2142, allocations: 11.92 kB / 413.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.596e-06/0.2142, allocations: 0 / 413.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000702/0.2149, allocations: 0.5111 MB / 414.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.16e-05/0.2149, allocations: 4 kB / 414.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.049e-05/0.215, allocations: 4 kB / 414.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004977/0.2155, allocations: 382.9 kB / 414.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.2155, allocations: 4 kB / 414.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2155, allocations: 0 / 414.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.2155, allocations: 0 / 414.6 MB, free: 12.92 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.0003932/0.2159, allocations: 422.5 kB / 415 MB, free: 12.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.2159, allocations: 8.031 kB / 415 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.387e-05/0.216, allocations: 84.17 kB / 415.1 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.2161, allocations: 247.6 kB / 415.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.514e-05/0.2162, allocations: 154.9 kB / 415.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.396e-05/0.2162, allocations: 154.7 kB / 415.6 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.339e-05/0.2163, allocations: 105 kB / 415.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/0.2163, allocations: 75.28 kB / 415.8 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.077e-05/0.2164, allocations: 150.6 kB / 416 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-05/0.2164, allocations: 154.6 kB / 416.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.634e-05/0.2165, allocations: 154.6 kB / 416.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002391/0.2167, allocations: 449.9 kB / 416.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.01e-05/0.2168, allocations: 173.1 kB / 416.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.651e-05/0.2169, allocations: 84.12 kB / 416.9 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.364e-05/0.2169, allocations: 79.28 kB / 417 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.471e-05/0.217, allocations: 47.41 kB / 417.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 1.884e-06/0.217, allocations: 0 / 417.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001073/0.2171, allocations: 37.64 kB / 417.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.598e-05/0.2171, allocations: 51.41 kB / 417.2 MB, free: 10.15 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.394e-05/0.2172, allocations: 101.8 kB / 417.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.2172, allocations: 25.7 kB / 417.3 MB, free: 10.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.899e-05/0.2173, allocations: 88.08 kB / 417.4 MB, free: 9.918 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.26e-05/0.2173, allocations: 7.938 kB / 417.4 MB, free: 9.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.765e-05/0.2173, allocations: 17.84 kB / 417.4 MB, free: 9.887 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.828e-05/0.2174, allocations: 314.8 kB / 417.7 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.844e-06/0.2174, allocations: 0 / 417.7 MB, free: 9.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.123e-05/0.2174, allocations: 7.984 kB / 417.7 MB, free: 9.562 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.096e-05/0.2175, allocations: 12.8 kB / 417.7 MB, free: 9.547 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.2175, allocations: 4 kB / 417.7 MB, free: 9.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.088e-05/0.2175, allocations: 37.64 kB / 417.8 MB, free: 9.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.039e-05/0.2176, allocations: 4 kB / 417.8 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-06/0.2176, allocations: 4.094 kB / 417.8 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.969e-06/0.2176, allocations: 0 / 417.8 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.642e-05/0.2176, allocations: 0 / 417.8 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.527e-06/0.2176, allocations: 0 / 417.8 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.686e-05/0.2176, allocations: 4 kB / 417.8 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.118e-06/0.2176, allocations: 0 / 417.8 MB, free: 9.488 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 5.842e-05/0.2177, allocations: 109.8 kB / 417.9 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.112e-05/0.2177, allocations: 3.938 kB / 417.9 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.388e-05/0.2177, allocations: 15.08 kB / 417.9 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.2178, allocations: 4 kB / 417.9 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.2178, allocations: 0 / 417.9 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.189e-05/0.2178, allocations: 77.11 kB / 418 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.042e-05/0.2178, allocations: 0 / 418 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.394e-05/0.2178, allocations: 3.984 kB / 418 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.403e-05/0.2178, allocations: 7.938 kB / 418 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 6.032e-05/0.2179, allocations: 108.9 kB / 418.1 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001002/0.218, allocations: 206.9 kB / 418.3 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.484e-05/0.218, allocations: 7.938 kB / 418.3 MB, free: 8.898 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.927e-05/0.2181, allocations: 87.45 kB / 418.4 MB, free: 8.812 MB / 334.1 MB Notification: Performance of Backend: time 2.41e-07/0.2181, allocations: 0 / 418.4 MB, free: 8.812 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.2192, allocations: 481 kB / 418.9 MB, free: 8.395 MB / 334.1 MB Notification: Performance of SimCode: time 0.0003407/0.2196, allocations: 0.5543 MB / 419.4 MB, free: 7.793 MB / 334.1 MB Notification: Performance of Templates: time 0.005926/0.2255, allocations: 3.157 MB / 422.6 MB, free: 4.637 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