Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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.VariableImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",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.001286/0.001286, allocations: 108 kB / 15.6 MB, free: 132 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.001333/0.001333, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.407/1.407, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002504/0.002504, allocations: 286.8 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.103/1.103, allocations: 178.6 MB / 0.5073 GB, free: 4.535 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00283/0.00283, allocations: 102.4 kB / 0.6066 GB, free: 24.69 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1546, allocations: 89.15 MB / 0.6936 GB, free: 4.215 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.00535/0.16, allocations: 3.734 MB / 0.6973 GB, free: 484 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00293/0.163, allocations: 1.797 MB / 0.699 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.1631, allocations: 15.88 kB / 0.699 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008276/0.164, allocations: 263.3 kB / 0.6993 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005718/0.1646, allocations: 298.5 kB / 0.6996 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005111/0.1651, allocations: 249.7 kB / 0.6998 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0006185/0.1657, allocations: 0.6049 MB / 0.7004 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004198/0.1662, allocations: 262.8 kB / 0.7006 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002979/0.1665, allocations: 227.2 kB / 0.7009 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003102/0.1668, allocations: 234.9 kB / 0.7011 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.824e-05/0.1668, allocations: 28 kB / 0.7011 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004388/0.1673, allocations: 275.4 kB / 0.7014 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001451/0.1674, allocations: 115.6 kB / 0.7015 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002092/0.1677, allocations: 206.9 kB / 0.7017 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006892/0.1684, allocations: 0.584 MB / 0.7023 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1684, allocations: 4 kB / 0.7023 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of FrontEnd: time 4.458e-06/0.1684, allocations: 3.984 kB / 0.7023 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.484e-06/0.1684, allocations: 0 / 0.7023 GB, free: 11.33 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001219/0.1696, allocations: 0.7361 MB / 0.703 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.1697, allocations: 12.03 kB / 0.703 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.124e-05/0.1698, allocations: 70.7 kB / 0.7031 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008913/0.1707, allocations: 136.2 kB / 0.7032 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005161/0.1712, allocations: 375.7 kB / 0.7035 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.328e-05/0.1712, allocations: 13.03 kB / 0.7036 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.922e-05/0.1713, allocations: 32.38 kB / 0.7036 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008798/0.1722, allocations: 0.5587 MB / 0.7041 GB, free: 9.246 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.218e-05/0.1722, allocations: 7.844 kB / 0.7041 GB, free: 9.238 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.691e-05/0.1722, allocations: 12 kB / 0.7042 GB, free: 9.227 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.926e-05/0.1723, allocations: 44.53 kB / 0.7042 GB, free: 9.18 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007392/0.1731, allocations: 409.6 kB / 0.7046 GB, free: 8.781 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003146/0.1762, allocations: 3.341 MB / 0.7078 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00071/0.1769, allocations: 342.4 kB / 0.7082 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003229/0.1773, allocations: 173.4 kB / 0.7083 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.1773, allocations: 4 kB / 0.7083 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.1773, allocations: 38.56 kB / 0.7084 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=26): time 1.874e-06/0.1773, allocations: 0 / 0.7084 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of matching and sorting (n=27): time 0.002156/0.1795, allocations: 1.055 MB / 0.7094 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.8e-05/0.1796, allocations: 55.64 kB / 0.7095 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003606/0.1799, allocations: 345.6 kB / 0.7098 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.441e-05/0.18, allocations: 29.7 kB / 0.7098 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000185/0.1802, allocations: 247.5 kB / 0.7101 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.959e-05/0.1802, allocations: 94.64 kB / 0.7101 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.1804, allocations: 70.05 kB / 0.7102 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001714/0.1805, allocations: 354.7 kB / 0.7106 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003011/0.1809, allocations: 148.8 kB / 0.7107 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003978/0.1813, allocations: 294.5 kB / 0.711 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007316/0.182, allocations: 482.1 kB / 0.7114 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.182, allocations: 0 / 0.7114 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001031/0.1831, allocations: 0.562 MB / 0.712 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.1831, allocations: 8 kB / 0.712 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.1831, allocations: 4 kB / 0.712 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003018/0.1834, allocations: 82.52 kB / 0.7121 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003606/0.1838, allocations: 91.81 kB / 0.7122 GB, free: 492 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.1838, allocations: 11.92 kB / 0.7122 GB, free: 480 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000254/0.1841, allocations: 36.16 kB / 0.7122 GB, free: 444 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.1841, allocations: 12 kB / 0.7122 GB, free: 432 kB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002027/0.1843, allocations: 185.6 kB / 0.7124 GB, free: 236 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.035e-05/0.1844, allocations: 39.53 kB / 0.7124 GB, free: 196 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009359/0.1853, allocations: 471.6 kB / 0.7129 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.1853, allocations: 0 / 0.7129 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.1853, allocations: 4 kB / 0.7129 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.1854, allocations: 3.984 kB / 0.7129 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001525/0.1869, allocations: 0.9558 MB / 0.7138 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.1869, allocations: 8 kB / 0.7138 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002436/0.1872, allocations: 47.91 kB / 0.7139 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002411/0.1874, allocations: 86.48 kB / 0.714 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.335e-05/0.1874, allocations: 8 kB / 0.714 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.1875, allocations: 11.97 kB / 0.714 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.1875, allocations: 4 kB / 0.714 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008848/0.1884, allocations: 0.5428 MB / 0.7145 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001616/0.1885, allocations: 136.6 kB / 0.7146 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.972e-05/0.1886, allocations: 4 kB / 0.7146 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/0.1888, allocations: 27.91 kB / 0.7147 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.919e-05/0.1889, allocations: 19.97 kB / 0.7147 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/0.1889, allocations: 12 kB / 0.7147 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002373/0.1892, allocations: 231.2 kB / 0.7149 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.51e-07/0.1892, allocations: 0 / 0.7149 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000404/0.1896, allocations: 91.98 kB / 0.715 GB, free: 13.4 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001233/0.1908, allocations: 1.101 MB / 0.7161 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0009965/0.1918, allocations: 0.6664 MB / 0.7167 GB, free: 11.53 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1918, allocations: 0 / 0.7167 GB, free: 11.53 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0005064/0.1923, allocations: 433.7 kB / 0.7172 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007162/0.1931, allocations: 138 kB / 0.7173 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005056/0.1981, allocations: 3.75 MB / 0.7209 GB, free: 6.93 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004822/0.1986, allocations: 0.8229 MB / 0.7218 GB, free: 6.082 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002539/0.1989, allocations: 75.36 kB / 0.7218 GB, free: 6.008 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001923/0.1991, allocations: 131.4 kB / 0.7219 GB, free: 5.879 MB / 0.5137 GB Notification: Performance of SimCode: time 3.3e-07/0.1991, allocations: 0 / 0.7219 GB, free: 5.879 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0322/0.2313, allocations: 8.216 MB / 0.73 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.563/9.795, allocations: 13.44 kB / 0.73 GB, free: 13.88 MB / 0.5294 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_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_VariableImpedance.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)