Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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.TestImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",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.005465/0.005465, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001582/0.001582, allocations: 201.4 kB / 16.68 MB, free: 5.969 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002445/0.002445, allocations: 283 kB / 290.8 MB, free: 1.934 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.065/1.065, allocations: 178.6 MB / 0.5074 GB, free: 4.488 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002696/0.002697, allocations: 94.25 kB / 0.6943 GB, free: 3.613 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4446/0.4473, allocations: 89.14 MB / 0.7813 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.006649/0.454, allocations: 4.846 MB / 0.7861 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00415/0.4581, allocations: 2.455 MB / 0.7885 GB, free: 8.801 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002709/0.4584, allocations: 22.16 kB / 0.7885 GB, free: 8.789 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001183/0.4596, allocations: 400 kB / 0.7889 GB, free: 8.547 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0009517/0.4606, allocations: 439.8 kB / 0.7893 GB, free: 8.301 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000874/0.4615, allocations: 380.4 kB / 0.7897 GB, free: 8.117 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001137/0.4626, allocations: 0.9148 MB / 0.7905 GB, free: 7.688 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006509/0.4633, allocations: 349.1 kB / 0.7909 GB, free: 7.551 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004575/0.4638, allocations: 342.2 kB / 0.7912 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004801/0.4643, allocations: 347.8 kB / 0.7915 GB, free: 7.25 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.729e-05/0.4643, allocations: 41.88 kB / 0.7916 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007463/0.4651, allocations: 401.8 kB / 0.792 GB, free: 7.109 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002177/0.4653, allocations: 184.5 kB / 0.7921 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003405/0.4657, allocations: 321.2 kB / 0.7924 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00115/0.4668, allocations: 0.8847 MB / 0.7933 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.4668, allocations: 0.9688 kB / 0.7933 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.142e-06/0.4668, allocations: 0 / 0.7933 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.022e-05/0.4669, allocations: 0 / 0.7933 GB, free: 6.52 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001432/0.4683, allocations: 0.9569 MB / 0.7942 GB, free: 5.797 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.4683, allocations: 9.422 kB / 0.7943 GB, free: 5.797 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001206/0.4685, allocations: 93.88 kB / 0.7943 GB, free: 5.727 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001247/0.4697, allocations: 205.8 kB / 0.7945 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008002/0.4705, allocations: 0.538 MB / 0.7951 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.812e-05/0.4706, allocations: 35.08 kB / 0.7951 GB, free: 5.309 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.583e-05/0.4707, allocations: 53.92 kB / 0.7951 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/0.4719, allocations: 0.8507 MB / 0.796 GB, free: 4.676 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.988e-05/0.4719, allocations: 6.781 kB / 0.796 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.425e-05/0.472, allocations: 24.28 kB / 0.796 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.25e-05/0.4721, allocations: 66.39 kB / 0.7961 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008838/0.4729, allocations: 0.5675 MB / 0.7966 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004716/0.4777, allocations: 5.652 MB / 0.8021 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006785/0.4784, allocations: 460.2 kB / 0.8026 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003361/0.4787, allocations: 227.5 kB / 0.8028 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.855e-05/0.4788, allocations: 4.031 kB / 0.8028 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/0.4788, allocations: 36.88 kB / 0.8028 GB, free: 14.51 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 2.324e-06/0.4788, allocations: 0 / 0.8028 GB, free: 14.51 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33): time 0.002646/0.4815, allocations: 1.521 MB / 0.8043 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.4815, allocations: 55.25 kB / 0.8044 GB, free: 13.33 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005318/0.482, allocations: 499.7 kB / 0.8049 GB, free: 13.02 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/0.4821, allocations: 35.02 kB / 0.8049 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002633/0.4824, allocations: 357 kB / 0.8052 GB, free: 12.67 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.4825, allocations: 126.5 kB / 0.8053 GB, free: 12.56 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001712/0.4827, allocations: 111.8 kB / 0.8055 GB, free: 12.49 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001852/0.4829, allocations: 371.5 kB / 0.8058 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002895/0.4832, allocations: 198.8 kB / 0.806 GB, free: 12.03 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004805/0.4836, allocations: 448 kB / 0.8064 GB, free: 11.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008684/0.4845, allocations: 0.6926 MB / 0.8071 GB, free: 11.03 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.4845, allocations: 2.156 kB / 0.8071 GB, free: 11.03 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001327/0.4859, allocations: 0.813 MB / 0.8079 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.4859, allocations: 7.969 kB / 0.8079 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.4859, allocations: 8.812 kB / 0.8079 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005003/0.4864, allocations: 154.6 kB / 0.8081 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004475/0.4869, allocations: 122.3 kB / 0.8082 GB, free: 10.45 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003637/0.4905, allocations: 4.35 MB / 0.8124 GB, free: 6.016 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004022/0.4909, allocations: 34.16 kB / 0.8125 GB, free: 6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.748e-05/0.491, allocations: 27.22 kB / 0.8125 GB, free: 5.996 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (66): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002606/0.4913, allocations: 218.5 kB / 0.8127 GB, free: 5.812 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.651e-05/0.4913, allocations: 62.38 kB / 0.8128 GB, free: 5.781 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001051/0.4924, allocations: 0.5919 MB / 0.8133 GB, free: 5.41 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.4924, allocations: 3.75 kB / 0.8133 GB, free: 5.41 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.4924, allocations: 1.875 kB / 0.8133 GB, free: 5.41 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.4924, allocations: 5.969 kB / 0.8133 GB, free: 5.406 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00183/0.4943, allocations: 1.26 MB / 0.8146 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.4943, allocations: 1.375 kB / 0.8146 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002557/0.4945, allocations: 54.39 kB / 0.8146 GB, free: 4.469 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004193/0.495, allocations: 136.7 kB / 0.8148 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.911e-05/0.495, allocations: 20.12 kB / 0.8148 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003511/0.4985, allocations: 4.332 MB / 0.819 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.4986, allocations: 6.172 kB / 0.819 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.4996, allocations: 0.7121 MB / 0.8197 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002178/0.4998, allocations: 169.4 kB / 0.8199 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.866e-05/0.4999, allocations: 11.62 kB / 0.8199 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000258/0.5002, allocations: 26.41 kB / 0.8199 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.482e-05/0.5002, allocations: 33.84 kB / 0.8199 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.5003, allocations: 12.39 kB / 0.82 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003688/0.5006, allocations: 331.1 kB / 0.8203 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5006, allocations: 3.938 kB / 0.8203 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006293/0.5013, allocations: 137.4 kB / 0.8204 GB, free: 15.04 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001337/0.5026, allocations: 1.266 MB / 0.8216 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001423/0.5041, allocations: 1.044 MB / 0.8227 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.5041, allocations: 5.875 kB / 0.8227 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008596/0.5049, allocations: 0.7345 MB / 0.8234 GB, free: 12.51 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009764/0.5059, allocations: 210.8 kB / 0.8236 GB, free: 12.41 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006411/0.5124, allocations: 5.11 MB / 0.8286 GB, free: 8.633 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005532/0.5129, allocations: 0.9 MB / 0.8294 GB, free: 7.84 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003326/0.5133, allocations: 113.9 kB / 0.8296 GB, free: 7.789 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002639/0.5135, allocations: 190.6 kB / 0.8297 GB, free: 7.633 MB / 0.5919 GB Notification: Performance of SimCode: time 6.11e-07/0.5136, allocations: 0 / 0.8297 GB, free: 7.633 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04594/0.5595, allocations: 12.73 MB / 0.8422 GB, free: 14.54 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/10.92, allocations: 16.22 kB / 0.8422 GB, free: 14.53 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_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_TestImpedance.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1)