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.001277/0.001277, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 195.5 kB / 16.53 MB, free: 6.699 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.414/1.414, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002805/0.002805, allocations: 283.2 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.059/1.059, allocations: 178.6 MB / 0.5073 GB, free: 4.547 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002841/0.002841, allocations: 100.1 kB / 0.6066 GB, free: 24.7 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1578/0.1606, allocations: 89.15 MB / 0.6936 GB, free: 4.191 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.00537/0.166, allocations: 3.256 MB / 0.6968 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003477/0.1695, allocations: 2.007 MB / 0.6988 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.1697, allocations: 7.938 kB / 0.6988 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001006/0.1707, allocations: 290.8 kB / 0.699 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0006061/0.1713, allocations: 238.9 kB / 0.6993 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007323/0.1721, allocations: 285.2 kB / 0.6995 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0005175/0.1726, allocations: 406.7 kB / 0.6999 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003818/0.173, allocations: 212.2 kB / 0.7001 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002599/0.1733, allocations: 167.4 kB / 0.7003 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003853/0.1737, allocations: 191.3 kB / 0.7005 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.259e-05/0.1737, allocations: 24 kB / 0.7005 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005063/0.1742, allocations: 271.5 kB / 0.7007 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001599/0.1744, allocations: 115.7 kB / 0.7009 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001871/0.1746, allocations: 147.2 kB / 0.701 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006413/0.1753, allocations: 482.6 kB / 0.7015 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.1753, allocations: 3.938 kB / 0.7015 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.183e-06/0.1753, allocations: 0 / 0.7015 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.335e-05/0.1753, allocations: 0 / 0.7015 GB, free: 12.12 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001172/0.1765, allocations: 0.6142 MB / 0.7021 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.1765, allocations: 8.031 kB / 0.7021 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.659e-05/0.1766, allocations: 62.73 kB / 0.7021 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001009/0.1776, allocations: 120.5 kB / 0.7022 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003932/0.178, allocations: 283 kB / 0.7025 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.1781, allocations: 16.92 kB / 0.7025 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001248/0.1782, allocations: 36.5 kB / 0.7026 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007834/0.179, allocations: 449.1 kB / 0.703 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.179, allocations: 4 kB / 0.703 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.341e-05/0.1791, allocations: 19.92 kB / 0.703 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001485/0.1792, allocations: 40.52 kB / 0.7031 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006933/0.1799, allocations: 361.9 kB / 0.7034 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002872/0.1828, allocations: 2.222 MB / 0.7056 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004806/0.1833, allocations: 270.4 kB / 0.7058 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002371/0.1835, allocations: 161.5 kB / 0.706 GB, free: 7.156 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.1836, allocations: 0 / 0.706 GB, free: 7.156 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.1836, allocations: 42.56 kB / 0.706 GB, free: 7.105 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=22): time 1.042e-06/0.1836, allocations: 0 / 0.706 GB, free: 7.105 MB / 0.4981 GB Notification: Performance of matching and sorting (n=23): time 0.001917/0.1855, allocations: 1.048 MB / 0.707 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.1856, allocations: 55.41 kB / 0.7071 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003396/0.1859, allocations: 264.8 kB / 0.7074 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.997e-05/0.186, allocations: 29.7 kB / 0.7074 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.1861, allocations: 188 kB / 0.7076 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.641e-05/0.1862, allocations: 86.75 kB / 0.7076 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001469/0.1864, allocations: 77.59 kB / 0.7077 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001602/0.1865, allocations: 330.8 kB / 0.708 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000314/0.1868, allocations: 167.8 kB / 0.7082 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003804/0.1872, allocations: 237.6 kB / 0.7084 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006382/0.1879, allocations: 418.8 kB / 0.7088 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.1879, allocations: 3.938 kB / 0.7088 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001274/0.1892, allocations: 0.5925 MB / 0.7094 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.1892, allocations: 8 kB / 0.7094 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.1892, allocations: 0 / 0.7094 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000695/0.1899, allocations: 188.8 kB / 0.7096 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000329/0.1902, allocations: 71.89 kB / 0.7097 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003219/0.1935, allocations: 2.492 MB / 0.7121 GB, free: 0.5625 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003897/0.1939, allocations: 27.97 kB / 0.7121 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.487e-05/0.1939, allocations: 19.98 kB / 0.7121 GB, free: 0.5156 MB / 0.4981 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.0001921/0.1941, allocations: 158.4 kB / 0.7123 GB, free: 360 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.47e-05/0.1942, allocations: 19.81 kB / 0.7123 GB, free: 340 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00063/0.1948, allocations: 373.2 kB / 0.7127 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.1948, allocations: 4 kB / 0.7127 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-06/0.1949, allocations: 0 / 0.7127 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1949, allocations: 0 / 0.7127 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.196, allocations: 0.8123 MB / 0.7135 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.1961, allocations: 0 / 0.7135 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004162/0.1965, allocations: 75.89 kB / 0.7135 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.421e-06/0.1965, allocations: 3.984 kB / 0.7135 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.1965, allocations: 8.062 kB / 0.7135 GB, free: 15 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.1965, allocations: 3.938 kB / 0.7135 GB, free: 15 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1965, allocations: 4 kB / 0.7136 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008392/0.1974, allocations: 0.6064 MB / 0.7141 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001569/0.1976, allocations: 132.8 kB / 0.7143 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.967e-05/0.1976, allocations: 8 kB / 0.7143 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002496/0.1979, allocations: 15.98 kB / 0.7143 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.559e-05/0.1979, allocations: 19.91 kB / 0.7143 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.846e-05/0.1979, allocations: 8 kB / 0.7143 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002477/0.1982, allocations: 188.5 kB / 0.7145 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.51e-07/0.1982, allocations: 0 / 0.7145 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004338/0.1986, allocations: 88 kB / 0.7146 GB, free: 13.9 MB / 0.5137 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.001197/0.1999, allocations: 1.159 MB / 0.7157 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001062/0.2009, allocations: 0.5807 MB / 0.7163 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2009, allocations: 4 kB / 0.7163 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000233/0.2012, allocations: 151.8 kB / 0.7164 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004453/0.2016, allocations: 59.44 kB / 0.7165 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005624/0.2073, allocations: 3.68 MB / 0.7201 GB, free: 8.07 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00042/0.2077, allocations: 0.8028 MB / 0.7209 GB, free: 7.242 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000251/0.208, allocations: 78.92 kB / 0.7209 GB, free: 7.164 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001541/0.2081, allocations: 87.34 kB / 0.721 GB, free: 7.082 MB / 0.5137 GB Notification: Performance of SimCode: time 2.31e-07/0.2081, allocations: 0 / 0.721 GB, free: 7.082 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03279/0.2409, allocations: 6.844 MB / 0.7277 GB, free: 440 kB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.626/9.867, allocations: 11.88 kB / 0.7277 GB, free: 428 kB / 0.5137 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)