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: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 91.84 kB / 16.32 MB, free: 5.633 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.001327/0.001328, allocations: 184.4 kB / 17.21 MB, free: 5.555 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.445/1.445, allocations: 223.3 MB / 241.2 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002333/0.0002333, allocations: 5.875 kB / 300.9 MB, free: 6.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1066, allocations: 50.42 MB / 351.3 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001105/0.1078, allocations: 0.9078 MB / 352.2 MB, free: 10.71 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002636/0.1104, allocations: 1.814 MB / 354 MB, free: 8.895 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.053e-05/0.1105, allocations: 7.938 kB / 354.1 MB, free: 8.887 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.416e-05/0.1105, allocations: 0 / 354.1 MB, free: 8.887 MB / 286.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.0008441/0.1114, allocations: 319.3 kB / 354.4 MB, free: 8.574 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.281e-05/0.1114, allocations: 7.984 kB / 354.4 MB, free: 8.566 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 3.898e-05/0.1114, allocations: 15.92 kB / 354.4 MB, free: 8.551 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.465e-05/0.1115, allocations: 0 / 354.4 MB, free: 8.551 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.664e-05/0.1115, allocations: 3.938 kB / 354.4 MB, free: 8.547 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.848e-05/0.1116, allocations: 11.98 kB / 354.4 MB, free: 8.535 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.705e-06/0.1116, allocations: 0 / 354.4 MB, free: 8.535 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006661/0.1123, allocations: 391.5 kB / 354.8 MB, free: 8.152 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.024e-05/0.1123, allocations: 3.984 kB / 354.8 MB, free: 8.148 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.272e-05/0.1123, allocations: 29.7 kB / 354.8 MB, free: 8.113 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000301/0.1126, allocations: 227.9 kB / 355 MB, free: 7.891 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1126, allocations: 0 / 355 MB, free: 7.891 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1127, allocations: 4 kB / 355 MB, free: 7.887 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.827e-06/0.1127, allocations: 0 / 355 MB, free: 7.887 MB / 286.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.0003834/0.1131, allocations: 403.2 kB / 355.4 MB, free: 7.445 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.1131, allocations: 8.031 kB / 355.4 MB, free: 7.438 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.132e-05/0.1131, allocations: 105.8 kB / 355.5 MB, free: 7.324 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.359e-05/0.1132, allocations: 87.23 kB / 355.6 MB, free: 7.238 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001456/0.1134, allocations: 250.3 kB / 355.9 MB, free: 6.953 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.982e-05/0.1134, allocations: 150.6 kB / 356 MB, free: 6.805 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.309e-05/0.1135, allocations: 158.5 kB / 356.2 MB, free: 6.648 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.688e-05/0.1135, allocations: 101 kB / 356.3 MB, free: 6.543 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.486e-05/0.1136, allocations: 75.28 kB / 356.4 MB, free: 6.469 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.178e-05/0.1136, allocations: 154.6 kB / 356.5 MB, free: 6.316 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-05/0.1137, allocations: 154.5 kB / 356.7 MB, free: 6.164 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.075e-05/0.1137, allocations: 154.6 kB / 356.8 MB, free: 6.012 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003606/0.1141, allocations: 445.9 kB / 357.2 MB, free: 5.527 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.896e-05/0.1142, allocations: 177.1 kB / 357.4 MB, free: 5.344 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.743e-05/0.1142, allocations: 80.14 kB / 357.5 MB, free: 5.262 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.1142, allocations: 75.28 kB / 357.6 MB, free: 5.188 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001298/0.1144, allocations: 43.41 kB / 357.6 MB, free: 5.133 MB / 286.1 MB Notification: Performance of pre-optimization done (n=1): time 1.903e-06/0.1144, allocations: 0 / 357.6 MB, free: 5.133 MB / 286.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001215/0.1145, allocations: 37.73 kB / 357.6 MB, free: 5.09 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.1146, allocations: 63.39 kB / 357.7 MB, free: 5.016 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.908e-05/0.1146, allocations: 97.84 kB / 357.8 MB, free: 4.91 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.892e-05/0.1147, allocations: 29.7 kB / 357.8 MB, free: 4.875 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.321e-05/0.1147, allocations: 84.14 kB / 357.9 MB, free: 4.789 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.116e-05/0.1147, allocations: 3.938 kB / 357.9 MB, free: 4.785 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.944e-06/0.1147, allocations: 0 / 357.9 MB, free: 4.785 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1148, allocations: 310.8 kB / 358.2 MB, free: 4.473 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.513e-06/0.1149, allocations: 0 / 358.2 MB, free: 4.473 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.43e-06/0.1149, allocations: 8 kB / 358.2 MB, free: 4.465 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.337e-05/0.1149, allocations: 3.984 kB / 358.2 MB, free: 4.461 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1149, allocations: 0 / 358.2 MB, free: 4.461 MB / 286.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.697e-05/0.115, allocations: 41.55 kB / 358.3 MB, free: 4.414 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.115, allocations: 8 kB / 358.3 MB, free: 4.406 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.115, allocations: 3.984 kB / 358.3 MB, free: 4.402 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.827e-06/0.115, allocations: 0 / 358.3 MB, free: 4.402 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.628e-05/0.115, allocations: 0 / 358.3 MB, free: 4.402 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.008e-06/0.115, allocations: 0 / 358.3 MB, free: 4.402 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.667e-05/0.1151, allocations: 8.047 kB / 358.3 MB, free: 4.395 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.939e-06/0.1151, allocations: 0 / 358.3 MB, free: 4.395 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.419e-05/0.1151, allocations: 113.8 kB / 358.4 MB, free: 4.273 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.195e-06/0.1151, allocations: 0 / 358.4 MB, free: 4.273 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.312e-05/0.1152, allocations: 7.062 kB / 358.4 MB, free: 4.262 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.1152, allocations: 4 kB / 358.4 MB, free: 4.258 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.1152, allocations: 0 / 358.4 MB, free: 4.258 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.1152, allocations: 0 / 358.4 MB, free: 4.258 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000112/0.1153, allocations: 153.6 kB / 358.6 MB, free: 4.059 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.1153, allocations: 4 kB / 358.6 MB, free: 4.055 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.338e-06/0.1153, allocations: 8 kB / 358.6 MB, free: 4.047 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1153, allocations: 0 / 358.6 MB, free: 4.047 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-06/0.1153, allocations: 0 / 358.6 MB, free: 4.047 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1153, allocations: 0 / 358.6 MB, free: 4.047 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1154, allocations: 0 / 358.6 MB, free: 4.047 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.301e-05/0.1154, allocations: 69.02 kB / 358.6 MB, free: 3.961 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.14e-05/0.1155, allocations: 77.11 kB / 358.7 MB, free: 3.867 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.1155, allocations: 4.031 kB / 358.7 MB, free: 3.863 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.183e-05/0.1155, allocations: 0 / 358.7 MB, free: 3.863 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.051e-05/0.1155, allocations: 192 / 358.7 MB, free: 3.863 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-06/0.1155, allocations: 4 kB / 358.7 MB, free: 3.859 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.757e-05/0.1156, allocations: 87.25 kB / 358.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1156, allocations: 0 / 358.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003922/0.116, allocations: 124 kB / 358.9 MB, free: 3.652 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001136/0.1172, allocations: 0.9868 MB / 359.9 MB, free: 2.719 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 5.109e-05/0.1172, allocations: 8 kB / 359.9 MB, free: 2.711 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1172, allocations: 0 / 359.9 MB, free: 2.711 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.729e-06/0.1172, allocations: 0 / 359.9 MB, free: 2.711 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001339/0.1174, allocations: 6.578 kB / 359.9 MB, free: 2.707 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006181/0.118, allocations: 406.4 kB / 360.3 MB, free: 2.258 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002581/0.1183, allocations: 0.6771 MB / 361 MB, free: 1.555 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.697e-05/0.1184, allocations: 11.94 kB / 361 MB, free: 1.543 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.694e-05/0.1184, allocations: 15.44 kB / 361 MB, free: 1.527 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1184, allocations: 0 / 361 MB, free: 1.527 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01571/0.1341, allocations: 3.662 MB / 364.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001785/0.1343, allocations: 228.4 kB / 364.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.734/1.869, allocations: 7.938 kB / 364.9 MB, free: 13.75 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat does not exist to compare? outputFormat=mat