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: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001589/0.001589, allocations: 108.9 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002018/0.002018, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001084/0.001084, allocations: 63.42 kB / 306.5 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.113, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.003794/0.1168, allocations: 1.263 MB / 358.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004489/0.1213, allocations: 2.057 MB / 360.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.419e-05/0.1214, allocations: 0 / 360.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.097e-05/0.1214, allocations: 0 / 360.4 MB, free: 10.98 MB / 302.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.001851/0.1233, allocations: 411.2 kB / 360.8 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.758e-05/0.1234, allocations: 4 kB / 360.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.981e-05/0.1234, allocations: 11.92 kB / 360.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.944e-05/0.1235, allocations: 4 kB / 360.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.701e-05/0.1235, allocations: 8 kB / 360.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.1237, allocations: 11.92 kB / 360.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.03e-05/0.1237, allocations: 0 / 360.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001047/0.1247, allocations: 475.5 kB / 361.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.754e-05/0.1248, allocations: 7.922 kB / 361.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.526e-05/0.1248, allocations: 4 kB / 361.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009532/0.1258, allocations: 375.4 kB / 361.7 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.1258, allocations: 0 / 361.7 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1258, allocations: 0 / 361.7 MB, free: 9.695 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1258, allocations: 0 / 361.7 MB, free: 9.695 MB / 302.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.0007009/0.1265, allocations: 427.6 kB / 362.1 MB, free: 9.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.1266, allocations: 12.03 kB / 362.1 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.329e-05/0.1266, allocations: 106 kB / 362.2 MB, free: 9.105 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.495e-05/0.1267, allocations: 76.22 kB / 362.3 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000237/0.127, allocations: 251.6 kB / 362.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.674e-05/0.1271, allocations: 150.9 kB / 362.7 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.023e-05/0.1271, allocations: 158.5 kB / 362.8 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.625e-05/0.1272, allocations: 101 kB / 362.9 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.72e-05/0.1273, allocations: 75.28 kB / 363 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.799e-05/0.1274, allocations: 150.6 kB / 363.2 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.757e-05/0.1274, allocations: 154.6 kB / 363.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.263e-05/0.1275, allocations: 150.6 kB / 363.4 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003642/0.1279, allocations: 457.9 kB / 363.9 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000113/0.128, allocations: 177 kB / 364.1 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.687e-05/0.1281, allocations: 84.14 kB / 364.2 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.746e-05/0.1281, allocations: 75.28 kB / 364.2 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002101/0.1283, allocations: 55.25 kB / 364.3 MB, free: 6.906 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.364e-06/0.1284, allocations: 3.938 kB / 364.3 MB, free: 6.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001753/0.1285, allocations: 29.7 kB / 364.3 MB, free: 6.867 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.155e-05/0.1286, allocations: 51.41 kB / 364.4 MB, free: 6.805 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.1287, allocations: 105.8 kB / 364.5 MB, free: 6.691 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.926e-05/0.1288, allocations: 25.7 kB / 364.5 MB, free: 6.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.63e-05/0.1289, allocations: 84.27 kB / 364.6 MB, free: 6.574 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.631e-05/0.1289, allocations: 8 kB / 364.6 MB, free: 6.566 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.862e-05/0.129, allocations: 9.719 kB / 364.6 MB, free: 6.551 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.1291, allocations: 310.8 kB / 364.9 MB, free: 6.238 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.18e-05/0.1291, allocations: 0 / 364.9 MB, free: 6.238 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.696e-06/0.1292, allocations: 4 kB / 364.9 MB, free: 6.234 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.388e-05/0.1292, allocations: 16.78 kB / 364.9 MB, free: 6.215 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.1292, allocations: 3.938 kB / 364.9 MB, free: 6.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001342/0.1294, allocations: 37.77 kB / 365 MB, free: 6.168 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.1294, allocations: 4 kB / 365 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.1294, allocations: 0 / 365 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.1294, allocations: 0 / 365 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.292e-05/0.1295, allocations: 0 / 365 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.1295, allocations: 7.984 kB / 365 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.56e-05/0.1295, allocations: 4 kB / 365 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-06/0.1295, allocations: 0 / 365 MB, free: 6.152 MB / 302.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 0.0001104/0.1296, allocations: 118.8 kB / 365.1 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.571e-05/0.1297, allocations: 8.031 kB / 365.1 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.904e-05/0.1297, allocations: 7.078 kB / 365.1 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.1297, allocations: 0 / 365.1 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1297, allocations: 3.938 kB / 365.1 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-06/0.1297, allocations: 0 / 365.1 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001976/0.13, allocations: 157.6 kB / 365.3 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.13, allocations: 0 / 365.3 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.28e-06/0.13, allocations: 0 / 365.3 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.13, allocations: 0 / 365.3 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.071e-06/0.13, allocations: 0 / 365.3 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.13, allocations: 0 / 365.3 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.13, allocations: 4 kB / 365.3 MB, free: 5.797 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.181e-05/0.1301, allocations: 68.97 kB / 365.3 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.391e-05/0.1302, allocations: 77.11 kB / 365.4 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.1302, allocations: 3.938 kB / 365.4 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.886e-05/0.1302, allocations: 4 kB / 365.4 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.183e-05/0.1302, allocations: 3.938 kB / 365.4 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.1303, allocations: 0 / 365.4 MB, free: 5.605 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.535e-05/0.1303, allocations: 91.3 kB / 365.5 MB, free: 5.516 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1303, allocations: 0 / 365.5 MB, free: 5.516 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006518/0.131, allocations: 140 kB / 365.6 MB, free: 5.379 MB / 302.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.00144/0.1324, allocations: 0.9971 MB / 366.6 MB, free: 4.418 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 8.282e-05/0.1325, allocations: 7.984 kB / 366.6 MB, free: 4.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1325, allocations: 0 / 366.6 MB, free: 4.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.149e-05/0.1326, allocations: 8 kB / 366.7 MB, free: 4.402 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001411/0.1327, allocations: 8.062 kB / 366.7 MB, free: 4.395 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.1339, allocations: 1.154 MB / 367.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002951/0.1342, allocations: 0.6767 MB / 368.5 MB, free: 2.457 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.147e-05/0.1343, allocations: 11.92 kB / 368.5 MB, free: 2.445 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.225e-05/0.1343, allocations: 23.36 kB / 368.5 MB, free: 2.422 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1343, allocations: 0 / 368.5 MB, free: 2.422 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.202/0.3363, allocations: 4.215 MB / 372.7 MB, free: 18.18 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/0.3365, allocations: 242.3 kB / 373 MB, free: 17.92 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.859/2.195, allocations: 2.75 kB / 373 MB, free: 17.92 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel.fmu > 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