Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",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.005746/0.005746, allocations: 98.56 kB / 15.73 MB, free: 6.059 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.001547/0.001547, allocations: 195.9 kB / 16.68 MB, free: 5.977 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002521/0.002521, allocations: 278.9 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.062/1.062, allocations: 178.6 MB / 0.5074 GB, free: 4.488 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002725/0.002725, allocations: 96.5 kB / 0.6943 GB, free: 3.586 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4233/0.426, allocations: 89.14 MB / 0.7813 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.004808/0.4309, allocations: 3.257 MB / 0.7845 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003281/0.4342, allocations: 2.017 MB / 0.7865 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.4343, allocations: 11.62 kB / 0.7865 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0009642/0.4353, allocations: 290.9 kB / 0.7868 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005109/0.4358, allocations: 238.3 kB / 0.787 GB, free: 9.961 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006629/0.4365, allocations: 286 kB / 0.7873 GB, free: 9.828 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004986/0.437, allocations: 411.5 kB / 0.7877 GB, free: 9.656 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003641/0.4374, allocations: 208.6 kB / 0.7879 GB, free: 9.57 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002152/0.4376, allocations: 163.5 kB / 0.788 GB, free: 9.504 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003792/0.438, allocations: 193.8 kB / 0.7882 GB, free: 9.43 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.794e-05/0.438, allocations: 27.75 kB / 0.7882 GB, free: 9.426 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004594/0.4385, allocations: 266.3 kB / 0.7885 GB, free: 9.34 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001491/0.4387, allocations: 120.7 kB / 0.7886 GB, free: 9.293 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001674/0.4388, allocations: 142.8 kB / 0.7887 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0007368/0.4396, allocations: 493.9 kB / 0.7892 GB, free: 9.051 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.4396, allocations: 0.5 kB / 0.7892 GB, free: 9.051 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.472e-06/0.4396, allocations: 0 / 0.7892 GB, free: 9.051 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.625e-06/0.4396, allocations: 1.062 kB / 0.7892 GB, free: 9.051 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001159/0.4408, allocations: 0.6127 MB / 0.7898 GB, free: 8.535 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.4408, allocations: 9.781 kB / 0.7898 GB, free: 8.535 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.018e-05/0.4409, allocations: 67.41 kB / 0.7899 GB, free: 8.477 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009778/0.4419, allocations: 115.7 kB / 0.79 GB, free: 8.457 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000393/0.4423, allocations: 289.4 kB / 0.7903 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.192e-05/0.4423, allocations: 14.28 kB / 0.7903 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.4425, allocations: 39.44 kB / 0.7903 GB, free: 8.176 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007752/0.4433, allocations: 457.6 kB / 0.7908 GB, free: 7.945 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.4433, allocations: 0.7969 kB / 0.7908 GB, free: 7.945 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.166e-05/0.4433, allocations: 15.45 kB / 0.7908 GB, free: 7.934 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001409/0.4435, allocations: 39.31 kB / 0.7908 GB, free: 7.93 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006749/0.4442, allocations: 361.8 kB / 0.7912 GB, free: 7.816 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002741/0.4469, allocations: 2.213 MB / 0.7933 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004615/0.4474, allocations: 270.9 kB / 0.7936 GB, free: 5.855 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002352/0.4476, allocations: 164.7 kB / 0.7937 GB, free: 5.789 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.609e-05/0.4477, allocations: 2.172 kB / 0.7937 GB, free: 5.789 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.407e-05/0.4477, allocations: 36.91 kB / 0.7938 GB, free: 5.746 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 1.343e-06/0.4477, allocations: 0 / 0.7938 GB, free: 5.746 MB / 0.5606 GB Notification: Performance of matching and sorting (n=23): time 0.001891/0.4496, allocations: 1.064 MB / 0.7948 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.097e-05/0.4497, allocations: 54.38 kB / 0.7949 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003447/0.45, allocations: 258.3 kB / 0.7951 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.719e-05/0.4501, allocations: 31.8 kB / 0.7951 GB, free: 4.852 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.4502, allocations: 187.1 kB / 0.7953 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.739e-05/0.4503, allocations: 94.41 kB / 0.7954 GB, free: 4.617 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001445/0.4504, allocations: 80.5 kB / 0.7955 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001474/0.4506, allocations: 336.7 kB / 0.7958 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003068/0.4509, allocations: 155.3 kB / 0.7959 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003613/0.4513, allocations: 244 kB / 0.7962 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006169/0.4519, allocations: 412.2 kB / 0.7966 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.4519, allocations: 5.844 kB / 0.7966 GB, free: 3.805 MB / 0.5606 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001286/0.4532, allocations: 0.593 MB / 0.7972 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.4532, allocations: 6.062 kB / 0.7972 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.4532, allocations: 2.5 kB / 0.7972 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007236/0.454, allocations: 195 kB / 0.7974 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003215/0.4543, allocations: 70.17 kB / 0.7974 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003144/0.4575, allocations: 2.494 MB / 0.7999 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000396/0.4579, allocations: 31.94 kB / 0.7999 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.597e-05/0.4579, allocations: 15.22 kB / 0.7999 GB, free: 1.344 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001835/0.4581, allocations: 164 kB / 0.8001 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.286e-05/0.4582, allocations: 23.08 kB / 0.8001 GB, free: 1.184 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005772/0.4588, allocations: 355.8 kB / 0.8004 GB, free: 0.9766 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.4588, allocations: 3.344 kB / 0.8004 GB, free: 0.9766 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.4588, allocations: 0 / 0.8004 GB, free: 0.9766 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.287e-06/0.4588, allocations: 0 / 0.8004 GB, free: 0.9766 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001108/0.4599, allocations: 0.8197 MB / 0.8012 GB, free: 360 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.4599, allocations: 1.25 kB / 0.8012 GB, free: 360 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000403/0.4603, allocations: 70.31 kB / 0.8013 GB, free: 344 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.4603, allocations: 1.062 kB / 0.8013 GB, free: 344 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.123e-05/0.4604, allocations: 11.05 kB / 0.8013 GB, free: 336 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.4604, allocations: 10.06 kB / 0.8013 GB, free: 328 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4604, allocations: 1.156 kB / 0.8013 GB, free: 328 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008221/0.4612, allocations: 0.6115 MB / 0.8019 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/0.4614, allocations: 132.7 kB / 0.802 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.397e-05/0.4614, allocations: 11.69 kB / 0.802 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002521/0.4617, allocations: 17.95 kB / 0.8021 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.465e-05/0.4618, allocations: 22.95 kB / 0.8021 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.4618, allocations: 5.031 kB / 0.8021 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002396/0.462, allocations: 188.8 kB / 0.8023 GB, free: 15.63 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.81e-07/0.462, allocations: 0 / 0.8023 GB, free: 15.63 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0004397/0.4625, allocations: 93.88 kB / 0.8024 GB, free: 15.61 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dynRC.q[1],dynRC.q[2],dynRL.psi[1],dynRL.psi[2]) * 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 (24): * Single equations (assignments): 24 * 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.001183/0.4637, allocations: 1.16 MB / 0.8035 GB, free: 14.68 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001018/0.4647, allocations: 0.5507 MB / 0.804 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4647, allocations: 0 / 0.804 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002189/0.4649, allocations: 152.1 kB / 0.8042 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004666/0.4654, allocations: 59.59 kB / 0.8042 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005438/0.4709, allocations: 3.69 MB / 0.8078 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004248/0.4713, allocations: 0.798 MB / 0.8086 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002344/0.4715, allocations: 78.94 kB / 0.8087 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001562/0.4717, allocations: 86.03 kB / 0.8088 GB, free: 10.69 MB / 0.5762 GB Notification: Performance of SimCode: time 3.51e-07/0.4717, allocations: 1.781 kB / 0.8088 GB, free: 10.69 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03265/0.5044, allocations: 6.957 MB / 0.8156 GB, free: 7.312 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.831/10.33, allocations: 10.75 kB / 0.8156 GB, free: 7.305 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1)