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.00105/0.001049, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001364/0.001364, allocations: 168.7 kB / 15.95 MB, free: 204 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.582/1.582, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.065/1.065, allocations: 143.4 MB / 434.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003969/0.0003972, allocations: 8 kB / 0.5161 GB, free: 11.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2176/0.218, allocations: 83.42 MB / 0.5975 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.Systems.HVAC.Emission.ElectricHeater.JouleHeatingPIControlled): time 0.003775/0.2219, allocations: 1.835 MB / 0.5993 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002171/0.2241, allocations: 0.6822 MB / 0.6 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003587/0.2245, allocations: 11.94 kB / 0.6 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002364/0.2248, allocations: 23.72 kB / 0.6 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00019/0.225, allocations: 31.72 kB / 0.6001 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000625/0.2256, allocations: 123.2 kB / 0.6002 GB, free: 4.996 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000518/0.2261, allocations: 232 kB / 0.6004 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003024/0.2264, allocations: 78.25 kB / 0.6005 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00019/0.2266, allocations: 63.59 kB / 0.6005 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001876/0.2268, allocations: 71.52 kB / 0.6006 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.581e-05/0.2269, allocations: 4 kB / 0.6006 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.972e-05/0.2269, allocations: 4 kB / 0.6006 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.113e-05/0.227, allocations: 35.78 kB / 0.6006 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.425e-05/0.2271, allocations: 57.58 kB / 0.6007 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002851/0.2273, allocations: 183.8 kB / 0.6009 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.029e-05/0.2274, allocations: 0 / 0.6009 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.436e-06/0.2274, allocations: 0 / 0.6009 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.072e-05/0.2274, allocations: 4 kB / 0.6009 GB, free: 4.266 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.001146/0.2286, allocations: 0.5139 MB / 0.6014 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 7.269e-05/0.2286, allocations: 8.031 kB / 0.6014 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001776/0.2288, allocations: 58.33 kB / 0.6014 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001162/0.2289, allocations: 27.72 kB / 0.6015 GB, free: 3.602 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005435/0.2295, allocations: 278.3 kB / 0.6017 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.518e-05/0.2295, allocations: 12 kB / 0.6017 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.243e-05/0.2296, allocations: 16 kB / 0.6018 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005222/0.2301, allocations: 222 kB / 0.602 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.2302, allocations: 0 / 0.602 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.921e-05/0.2302, allocations: 8 kB / 0.602 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.2302, allocations: 4 kB / 0.602 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003492/0.2306, allocations: 148.8 kB / 0.6021 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001467/0.232, allocations: 0.7793 MB / 0.6029 GB, free: 2.035 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004479/0.2325, allocations: 182.6 kB / 0.6031 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001702/0.2327, allocations: 72.83 kB / 0.6031 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.612e-05/0.2327, allocations: 0 / 0.6031 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.587e-05/0.2328, allocations: 34.56 kB / 0.6032 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=14): time 3.106e-06/0.2328, allocations: 3.984 kB / 0.6032 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14): time 0.0005971/0.2334, allocations: 225.3 kB / 0.6034 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.679e-05/0.2335, allocations: 77.11 kB / 0.6034 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003363/0.2338, allocations: 250.7 kB / 0.6037 GB, free: 1.156 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.94e-05/0.2339, allocations: 29.7 kB / 0.6037 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001627/0.234, allocations: 164.2 kB / 0.6039 GB, free: 0.957 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.839e-05/0.2341, allocations: 47.3 kB / 0.6039 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.646e-06/0.2341, allocations: 0 / 0.6039 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002026/0.2343, allocations: 342.8 kB / 0.6042 GB, free: 0.5664 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.2345, allocations: 47.97 kB / 0.6043 GB, free: 0.5195 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001599/0.2346, allocations: 92.17 kB / 0.6044 GB, free: 424 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.2348, allocations: 63.53 kB / 0.6044 GB, free: 364 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.2348, allocations: 0 / 0.6044 GB, free: 364 kB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004252/0.2352, allocations: 197.2 kB / 0.6046 GB, free: 160 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001154/0.2354, allocations: 117.2 kB / 0.6047 GB, free: 28 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.2354, allocations: 0 / 0.6047 GB, free: 28 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.879e-05/0.2354, allocations: 3.984 kB / 0.6047 GB, free: 24 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.4357/0.6711, allocations: 39.62 kB / 0.6048 GB, free: 40.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.252e-05/0.6712, allocations: 3.594 kB / 0.6048 GB, free: 40.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000226/0.6714, allocations: 12.27 kB / 0.6048 GB, free: 40.45 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.227e-05/0.6715, allocations: 8.469 kB / 0.6048 GB, free: 40.45 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.6715, allocations: 3 kB / 0.6048 GB, free: 40.45 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002897/0.6718, allocations: 120.5 kB / 0.6049 GB, free: 40.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.6718, allocations: 0.5 kB / 0.6049 GB, free: 40.45 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.207e-06/0.6718, allocations: 3.984 kB / 0.6049 GB, free: 40.45 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.6719, allocations: 26.41 kB / 0.605 GB, free: 40.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-06/0.6719, allocations: 2.391 kB / 0.605 GB, free: 40.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.562e-05/0.672, allocations: 15.81 kB / 0.605 GB, free: 40.45 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.277e-05/0.6721, allocations: 8.875 kB / 0.605 GB, free: 40.45 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.000352/0.6724, allocations: 218.7 kB / 0.6052 GB, free: 40.26 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.024e-05/0.6725, allocations: 24.02 kB / 0.6052 GB, free: 40.26 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.401e-05/0.6726, allocations: 29.06 kB / 0.6052 GB, free: 40.26 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.6726, allocations: 3.281 kB / 0.6052 GB, free: 40.26 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.6726, allocations: 0 / 0.6052 GB, free: 40.26 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.6726, allocations: 0.75 kB / 0.6052 GB, free: 40.26 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007759/0.6734, allocations: 0.5294 MB / 0.6058 GB, free: 39.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.6734, allocations: 1.375 kB / 0.6058 GB, free: 39.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001563/0.6736, allocations: 31.34 kB / 0.6058 GB, free: 39.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.6736, allocations: 2.562 kB / 0.6058 GB, free: 39.96 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.6736, allocations: 2.844 kB / 0.6058 GB, free: 39.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.6736, allocations: 4.906 kB / 0.6058 GB, free: 39.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.6736, allocations: 0 / 0.6058 GB, free: 39.96 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004721/0.6741, allocations: 349.8 kB / 0.6061 GB, free: 39.84 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.88e-05/0.6742, allocations: 116.5 kB / 0.6062 GB, free: 39.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.052e-05/0.6743, allocations: 0 / 0.6062 GB, free: 39.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001236/0.6744, allocations: 12.44 kB / 0.6063 GB, free: 39.74 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.469e-05/0.6744, allocations: 6.109 kB / 0.6063 GB, free: 39.74 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-06/0.6744, allocations: 3.625 kB / 0.6063 GB, free: 39.74 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000173/0.6746, allocations: 178.3 kB / 0.6064 GB, free: 39.66 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.6746, allocations: 0 / 0.6064 GB, free: 39.66 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003863/0.675, allocations: 72.95 kB / 0.6065 GB, free: 39.66 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.0006296/0.6757, allocations: 0.8781 MB / 0.6074 GB, free: 38.99 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004187/0.6761, allocations: 197.2 kB / 0.6075 GB, free: 38.99 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.6761, allocations: 0 / 0.6075 GB, free: 38.99 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001306/0.6762, allocations: 70.27 kB / 0.6076 GB, free: 38.99 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004886/0.6767, allocations: 61.11 kB / 0.6077 GB, free: 38.99 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001965/0.6787, allocations: 1.366 MB / 0.609 GB, free: 38.42 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001779/0.6789, allocations: 0.7519 MB / 0.6097 GB, free: 37.73 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001272/0.679, allocations: 29.91 kB / 0.6098 GB, free: 37.72 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.6792, allocations: 90.23 kB / 0.6099 GB, free: 37.71 MB / 0.4981 GB Notification: Performance of SimCode: time 5.51e-07/0.6792, allocations: 0 / 0.6099 GB, free: 37.71 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01479/0.694, allocations: 4.509 MB / 0.6143 GB, free: 37.46 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000156/0.6942, allocations: 215.7 kB / 0.6145 GB, free: 37.22 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.063/2.757, allocations: 0 / 0.6145 GB, free: 37.22 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: