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.001073/0.001078, allocations: 114.3 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001098/0.001098, allocations: 210.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002019/0.002019, allocations: 59.91 kB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2263, allocations: 50.54 MB / 409.9 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001846/0.2282, allocations: 1.207 MB / 411.1 MB, free: 424 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002768/0.2309, allocations: 2.077 MB / 413.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.163e-05/0.231, allocations: 0 / 413.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.832e-05/0.231, allocations: 7.875 kB / 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.001036/0.2321, allocations: 458.6 kB / 413.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.328e-05/0.2321, allocations: 7.984 kB / 413.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.095e-05/0.2321, allocations: 11.92 kB / 413.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.164e-05/0.2322, allocations: 0 / 413.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.249e-05/0.2322, allocations: 8 kB / 413.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002338/0.2324, allocations: 8 kB / 413.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.121e-05/0.2325, allocations: 3.938 kB / 413.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006906/0.2332, allocations: 0.515 MB / 414.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.177e-05/0.2332, allocations: 3.984 kB / 414.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 1.864e-05/0.2332, allocations: 4 kB / 414.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004869/0.2337, allocations: 375.4 kB / 414.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.2337, allocations: 0 / 414.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2337, allocations: 0 / 414.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.657e-06/0.2337, allocations: 0 / 414.6 MB, free: 12.94 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.0004048/0.2341, allocations: 423.3 kB / 415 MB, free: 12.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.046e-05/0.2342, allocations: 8.031 kB / 415 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.653e-05/0.2342, allocations: 88.06 kB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001432/0.2344, allocations: 239.7 kB / 415.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.901e-05/0.2345, allocations: 154.9 kB / 415.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.807e-05/0.2345, allocations: 158.7 kB / 415.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.021e-05/0.2346, allocations: 105 kB / 415.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.2346, allocations: 75.28 kB / 415.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.112e-05/0.2346, allocations: 150.6 kB / 415.9 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.947e-05/0.2347, allocations: 150.6 kB / 416.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.302e-05/0.2347, allocations: 154.5 kB / 416.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002496/0.235, allocations: 453.9 kB / 416.7 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.749e-05/0.2351, allocations: 165.1 kB / 416.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.908e-05/0.2351, allocations: 88.11 kB / 416.9 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.2351, allocations: 79.28 kB / 417 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.827e-05/0.2352, allocations: 59.34 kB / 417.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 1.794e-06/0.2353, allocations: 0 / 417.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001021/0.2354, allocations: 29.7 kB / 417.1 MB, free: 10.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.234e-05/0.2354, allocations: 51.41 kB / 417.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.447e-05/0.2355, allocations: 105.8 kB / 417.2 MB, free: 10.06 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.077e-05/0.2355, allocations: 25.7 kB / 417.3 MB, free: 10.03 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.035e-05/0.2355, allocations: 80.14 kB / 417.3 MB, free: 9.945 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.638e-06/0.2356, allocations: 3.938 kB / 417.3 MB, free: 9.941 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.716e-05/0.2356, allocations: 21.78 kB / 417.4 MB, free: 9.914 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.265e-05/0.2357, allocations: 314.8 kB / 417.7 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.486e-06/0.2357, allocations: 3.984 kB / 417.7 MB, free: 9.594 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.803e-06/0.2357, allocations: 3.938 kB / 417.7 MB, free: 9.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.001e-05/0.2357, allocations: 8.859 kB / 417.7 MB, free: 9.578 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2358, allocations: 0 / 417.7 MB, free: 9.578 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.227e-05/0.2358, allocations: 37.55 kB / 417.7 MB, free: 9.535 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.2358, allocations: 14.75 kB / 417.7 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.636e-06/0.2358, allocations: 0 / 417.7 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.758e-06/0.2359, allocations: 0 / 417.7 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.546e-05/0.2359, allocations: 0 / 417.7 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.967e-06/0.2359, allocations: 0 / 417.7 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.491e-05/0.2359, allocations: 0 / 417.7 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-06/0.2359, allocations: 0 / 417.7 MB, free: 9.523 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.102e-05/0.236, allocations: 121.8 kB / 417.9 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.319e-05/0.236, allocations: 3.938 kB / 417.9 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.196e-05/0.236, allocations: 11.02 kB / 417.9 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.236, allocations: 8 kB / 417.9 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.236, allocations: 0 / 417.9 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.757e-05/0.2361, allocations: 77.11 kB / 418 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.013e-05/0.2361, allocations: 0 / 418 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.398e-05/0.2361, allocations: 3.984 kB / 418 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.055e-06/0.2361, allocations: 0 / 418 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.862e-05/0.2362, allocations: 116.9 kB / 418.1 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001068/0.2363, allocations: 210.8 kB / 418.3 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.446e-05/0.2363, allocations: 4 kB / 418.3 MB, free: 8.922 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.347e-05/0.2364, allocations: 79.28 kB / 418.4 MB, free: 8.844 MB / 334.1 MB Notification: Performance of Backend: time 2.9e-07/0.2364, allocations: 0 / 418.4 MB, free: 8.844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.2375, allocations: 487.2 kB / 418.8 MB, free: 8.422 MB / 334.1 MB Notification: Performance of SimCode: time 0.0003626/0.2379, allocations: 0.5543 MB / 419.4 MB, free: 7.82 MB / 334.1 MB Notification: Performance of Templates: time 0.006168/0.2441, allocations: 3.17 MB / 422.6 MB, free: 4.652 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