Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 107 kB / 17.74 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 186.4 kB / 18.67 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009679/0.0009679, allocations: 47.92 kB / 351.9 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2095/0.2105, allocations: 49.44 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001906/0.2124, allocations: 1.197 MB / 402.6 MB, free: 7.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00253/0.2149, allocations: 1.952 MB / 404.5 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.985e-05/0.215, allocations: 4 kB / 404.5 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.324e-05/0.215, allocations: 0 / 404.5 MB, free: 5.695 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Examples.mo:279:3-372: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.0009875/0.216, allocations: 442.6 kB / 405 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.897e-05/0.216, allocations: 0 / 405 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.191e-05/0.2161, allocations: 15.86 kB / 405 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.943e-05/0.2161, allocations: 7.984 kB / 405 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.752e-05/0.2161, allocations: 3.938 kB / 405 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002385/0.2164, allocations: 8 kB / 405 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.377e-06/0.2164, allocations: 0 / 405 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006395/0.217, allocations: 479.5 kB / 405.5 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.004e-05/0.2171, allocations: 0 / 405.5 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.374e-05/0.2171, allocations: 7.938 kB / 405.5 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004291/0.2175, allocations: 343.4 kB / 405.8 MB, free: 4.414 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2175, allocations: 3.984 kB / 405.8 MB, free: 4.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2176, allocations: 0 / 405.8 MB, free: 4.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.2176, allocations: 0 / 405.8 MB, free: 4.41 MB / 318.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.0003747/0.2179, allocations: 399.5 kB / 406.2 MB, free: 3.973 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.193e-05/0.218, allocations: 8.031 kB / 406.2 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.814e-05/0.218, allocations: 84.2 kB / 406.3 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.2182, allocations: 239.6 kB / 406.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.713e-05/0.2182, allocations: 154.9 kB / 406.7 MB, free: 3.457 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.926e-05/0.2183, allocations: 158.7 kB / 406.8 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.199e-05/0.2183, allocations: 104.9 kB / 406.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.2184, allocations: 75.28 kB / 407 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.726e-05/0.2184, allocations: 150.6 kB / 407.2 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.081e-05/0.2185, allocations: 158.5 kB / 407.3 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.425e-05/0.2185, allocations: 154.6 kB / 407.5 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002315/0.2188, allocations: 442 kB / 407.9 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.447e-05/0.2188, allocations: 173.1 kB / 408.1 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.92e-05/0.2189, allocations: 88.06 kB / 408.2 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.2189, allocations: 79.28 kB / 408.2 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.283e-05/0.219, allocations: 43.41 kB / 408.3 MB, free: 1.777 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.033e-06/0.219, allocations: 0 / 408.3 MB, free: 1.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001092/0.2191, allocations: 45.62 kB / 408.3 MB, free: 1.727 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.767e-05/0.2192, allocations: 51.41 kB / 408.4 MB, free: 1.664 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.315e-05/0.2192, allocations: 93.86 kB / 408.5 MB, free: 1.562 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.2192, allocations: 33.83 kB / 408.5 MB, free: 1.523 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.875e-05/0.2193, allocations: 88.08 kB / 408.6 MB, free: 1.434 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.698e-06/0.2193, allocations: 0 / 408.6 MB, free: 1.434 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.674e-05/0.2193, allocations: 13.7 kB / 408.6 MB, free: 1.414 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.948e-05/0.2194, allocations: 314.8 kB / 408.9 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.554e-06/0.2194, allocations: 0 / 408.9 MB, free: 1.098 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.409e-06/0.2194, allocations: 0 / 408.9 MB, free: 1.098 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.098e-05/0.2195, allocations: 16.92 kB / 408.9 MB, free: 1.078 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.2195, allocations: 0 / 408.9 MB, free: 1.078 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.437e-05/0.2195, allocations: 41.48 kB / 409 MB, free: 1.031 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/0.2195, allocations: 7.938 kB / 409 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.2196, allocations: 7.984 kB / 409 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.826e-06/0.2196, allocations: 0 / 409 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.639e-05/0.2196, allocations: 0 / 409 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.2196, allocations: 0 / 409 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.52e-05/0.2196, allocations: 0 / 409 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.087e-06/0.2196, allocations: 0 / 409 MB, free: 1.016 MB / 318.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 6.075e-05/0.2197, allocations: 113.9 kB / 409.1 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.154e-05/0.2197, allocations: 3.938 kB / 409.1 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.954e-05/0.2197, allocations: 7.125 kB / 409.1 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.2197, allocations: 0 / 409.1 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2198, allocations: 0 / 409.1 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.243e-05/0.2198, allocations: 85.09 kB / 409.2 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.049e-05/0.2198, allocations: 0 / 409.2 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.24e-05/0.2198, allocations: 0 / 409.2 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.095e-06/0.2198, allocations: 0 / 409.2 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 6.043e-05/0.2199, allocations: 116.9 kB / 409.3 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 9.444e-05/0.22, allocations: 206.8 kB / 409.5 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.118e-05/0.22, allocations: 0 / 409.5 MB, free: 452 kB / 318.1 MB Notification: Performance of sorting global known variables: time 3.311e-05/0.2201, allocations: 87.27 kB / 409.6 MB, free: 364 kB / 318.1 MB Notification: Performance of Backend: time 2e-07/0.2201, allocations: 0 / 409.6 MB, free: 364 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001078/0.2211, allocations: 474.8 kB / 410 MB, free: 15.96 MB / 334.1 MB Notification: Performance of SimCode: time 0.0003503/0.2215, allocations: 0.5699 MB / 410.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of Templates: time 0.005527/0.227, allocations: 2.785 MB / 413.4 MB, free: 12.57 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches