Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.Systems.HVAC.Emission.ElectricHeater.JouleHeatingPIControlled.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo) 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(BuildSysPro.Systems.HVAC.Emission.ElectricHeater.JouleHeatingPIControlled,fileNamePrefix="BuildSysPro_BuildSysPro_Systems_HVAC_Emission_ElectricHeater_JouleHeatingPIControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.Systems.HVAC.Emission.ElectricHeater.JouleHeatingPIControlled,fileNamePrefix="BuildSysPro_BuildSysPro_Systems_HVAC_Emission_ElectricHeater_JouleHeatingPIControlled",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.0009433/0.0009433, allocations: 100.8 kB / 15.06 MB, free: 1.094 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.001012/0.001012, allocations: 177.3 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 223.2 MB / 239.9 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.9708/0.9708, allocations: 143.3 MB / 434.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003947/0.0003948, allocations: 8 kB / 0.5159 GB, free: 11.31 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1838/0.1842, allocations: 83.41 MB / 0.5973 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.Systems.HVAC.Emission.ElectricHeater.JouleHeatingPIControlled): time 0.002686/0.1869, allocations: 1.835 MB / 0.5991 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001204/0.1881, allocations: 0.6784 MB / 0.5998 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001422/0.1883, allocations: 7.938 kB / 0.5998 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.809e-05/0.1884, allocations: 15.8 kB / 0.5998 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003327/0.1887, allocations: 75.75 kB / 0.5999 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003165/0.189, allocations: 131.6 kB / 0.6 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002878/0.1893, allocations: 172.3 kB / 0.6002 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.1895, allocations: 74.27 kB / 0.6003 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.092e-05/0.1896, allocations: 67.64 kB / 0.6003 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.1897, allocations: 71.52 kB / 0.6004 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.031e-05/0.1897, allocations: 4 kB / 0.6004 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.976e-05/0.1897, allocations: 8 kB / 0.6004 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.022e-05/0.1898, allocations: 27.78 kB / 0.6004 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.023e-05/0.1898, allocations: 61.58 kB / 0.6005 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00017/0.19, allocations: 179.8 kB / 0.6007 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.746e-06/0.19, allocations: 4 kB / 0.6007 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.313e-06/0.19, allocations: 0 / 0.6007 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.19, allocations: 0 / 0.6007 GB, free: 4.414 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0006561/0.1907, allocations: 0.5099 MB / 0.6012 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.1907, allocations: 8.031 kB / 0.6012 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.331e-05/0.1908, allocations: 62.33 kB / 0.6012 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.012e-05/0.1909, allocations: 31.67 kB / 0.6013 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003055/0.1912, allocations: 274.4 kB / 0.6015 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.1912, allocations: 16 kB / 0.6015 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.492e-05/0.1913, allocations: 19.98 kB / 0.6016 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003486/0.1916, allocations: 214.1 kB / 0.6018 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.1916, allocations: 0 / 0.6018 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.028e-05/0.1917, allocations: 4 kB / 0.6018 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.343e-06/0.1917, allocations: 4 kB / 0.6018 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002812/0.192, allocations: 144.9 kB / 0.6019 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009857/0.193, allocations: 0.7871 MB / 0.6027 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004517/0.1934, allocations: 186.6 kB / 0.6028 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.1934, allocations: 0 / 0.6028 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/0.1935, allocations: 34.5 kB / 0.6029 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=14): time 1.162e-06/0.1935, allocations: 0 / 0.6029 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14): time 0.0004762/0.194, allocations: 232.9 kB / 0.6031 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/0.194, allocations: 77.11 kB / 0.6032 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000226/0.1943, allocations: 246.7 kB / 0.6034 GB, free: 1.379 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.1943, allocations: 29.7 kB / 0.6034 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.1944, allocations: 164.2 kB / 0.6036 GB, free: 1.18 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.556e-05/0.1944, allocations: 51.28 kB / 0.6036 GB, free: 1.129 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.675e-06/0.1945, allocations: 4 kB / 0.6036 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1946, allocations: 334.8 kB / 0.604 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001115/0.1947, allocations: 47.97 kB / 0.604 GB, free: 0.7422 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.1948, allocations: 104 kB / 0.6041 GB, free: 0.625 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001329/0.195, allocations: 55.98 kB / 0.6042 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.195, allocations: 0 / 0.6042 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003185/0.1953, allocations: 193.3 kB / 0.6044 GB, free: 384 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.308/0.5033, allocations: 371 kB / 0.6047 GB, free: 40.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.789e-05/0.5033, allocations: 0 / 0.6047 GB, free: 40.71 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.494e-05/0.5034, allocations: 1.812 kB / 0.6047 GB, free: 40.71 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002525/0.5036, allocations: 31.89 kB / 0.6047 GB, free: 40.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.5037, allocations: 1.797 kB / 0.6047 GB, free: 40.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001693/0.5038, allocations: 18.95 kB / 0.6048 GB, free: 40.71 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.917e-05/0.5039, allocations: 9.25 kB / 0.6048 GB, free: 40.71 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.837e-06/0.5039, allocations: 4.625 kB / 0.6048 GB, free: 40.71 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002709/0.5041, allocations: 116.7 kB / 0.6049 GB, free: 40.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.545e-06/0.5042, allocations: 5.312 kB / 0.6049 GB, free: 40.71 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.026e-06/0.5042, allocations: 1.719 kB / 0.6049 GB, free: 40.71 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.5043, allocations: 28.62 kB / 0.6049 GB, free: 40.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.5043, allocations: 3.75 kB / 0.6049 GB, free: 40.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.839e-05/0.5044, allocations: 12.09 kB / 0.6049 GB, free: 40.71 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.5044, allocations: 8.219 kB / 0.6049 GB, free: 40.71 MB / 0.4981 GB Warning: Assuming fixed start value for the following 2 variables: firstOrder.y:VARIABLE(flow=false start = firstOrder.y_start fixed = true protected = true ) "Connector of Real output signal" type: Real PI1.I.y:VARIABLE(flow=false start = PI1.I.y_start fixed = true protected = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (PI1.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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 0.0002751/0.5047, allocations: 220.5 kB / 0.6051 GB, free: 40.53 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.752e-05/0.5048, allocations: 23.88 kB / 0.6052 GB, free: 40.53 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.847e-05/0.5048, allocations: 30.56 kB / 0.6052 GB, free: 40.52 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.907e-05/0.5049, allocations: 9.688 kB / 0.6052 GB, free: 40.52 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.5049, allocations: 0.5625 kB / 0.6052 GB, free: 40.52 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.5049, allocations: 0 / 0.6052 GB, free: 40.52 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006686/0.5056, allocations: 0.5172 MB / 0.6057 GB, free: 40.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.5056, allocations: 0 / 0.6057 GB, free: 40.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001522/0.5057, allocations: 31.16 kB / 0.6057 GB, free: 40.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.5058, allocations: 2.469 kB / 0.6057 GB, free: 40.23 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.5058, allocations: 4.438 kB / 0.6058 GB, free: 40.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.5058, allocations: 5.359 kB / 0.6058 GB, free: 40.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5058, allocations: 1.875 kB / 0.6058 GB, free: 40.23 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004237/0.5062, allocations: 340.2 kB / 0.6061 GB, free: 40.1 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.927e-05/0.5063, allocations: 112.7 kB / 0.6062 GB, free: 40 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.134e-05/0.5063, allocations: 6.906 kB / 0.6062 GB, free: 40 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.5065, allocations: 7.781 kB / 0.6062 GB, free: 40 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.734e-05/0.5065, allocations: 6.172 kB / 0.6062 GB, free: 40 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.276e-06/0.5065, allocations: 5.875 kB / 0.6062 GB, free: 40 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001378/0.5067, allocations: 178.8 kB / 0.6064 GB, free: 39.93 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5067, allocations: 3.75 kB / 0.6064 GB, free: 39.93 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003515/0.507, allocations: 68.2 kB / 0.6065 GB, free: 39.93 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (PI1.I.y,firstOrder.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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.0005892/0.5076, allocations: 0.8903 MB / 0.6073 GB, free: 39.26 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003728/0.508, allocations: 196.1 kB / 0.6075 GB, free: 39.26 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.508, allocations: 0 / 0.6075 GB, free: 39.26 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001134/0.5081, allocations: 67.98 kB / 0.6076 GB, free: 39.26 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003572/0.5085, allocations: 57.73 kB / 0.6076 GB, free: 39.26 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/0.5104, allocations: 1.801 MB / 0.6094 GB, free: 38.23 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001545/0.5105, allocations: 0.7585 MB / 0.6101 GB, free: 37.54 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001091/0.5107, allocations: 29.28 kB / 0.6102 GB, free: 37.54 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.5108, allocations: 81.89 kB / 0.6102 GB, free: 37.53 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.5108, allocations: 4 kB / 0.6102 GB, free: 37.53 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01986/0.5306, allocations: 4.484 MB / 0.6146 GB, free: 37.27 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001986/0.5309, allocations: 206.6 kB / 0.6148 GB, free: 37.04 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.694/2.225, allocations: 6.109 kB / 0.6148 GB, free: 37.03 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.Systems.HVAC.Emission.ElectricHeater.JouleHeatingPIControlled.pipe ; mkfifo BuildSysPro_BuildSysPro.Systems.HVAC.Emission.ElectricHeater.JouleHeatingPIControlled.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.Systems.HVAC.Emission.ElectricHeater.JouleHeatingPIControlled.pipe >> ../files/BuildSysPro_BuildSysPro.Systems.HVAC.Emission.ElectricHeater.JouleHeatingPIControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_Systems_HVAC_Emission_ElectricHeater_JouleHeatingPIControlled_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_Systems_HVAC_Emission_ElectricHeater_JouleHeatingPIControlled.fmu > BuildSysPro_BuildSysPro.Systems.HVAC.Emission.ElectricHeater.JouleHeatingPIControlled.pipe 2>&1) Environment - environmentSimulation: