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.007328/0.007328, allocations: 100.9 kB / 15.73 MB, free: 6 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.001661/0.001661, allocations: 189.1 kB / 16.67 MB, free: 5.934 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.239/1.239, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002053/0.002053, allocations: 278.9 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9045/0.9045, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001628/0.001628, allocations: 95.8 kB / 0.681 GB, free: 8 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1372, allocations: 86.97 MB / 0.7659 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.005608/0.1428, allocations: 4.842 MB / 0.7706 GB, free: 4.094 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003476/0.1463, allocations: 2.448 MB / 0.773 GB, free: 1.637 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003271/0.1467, allocations: 23.81 kB / 0.773 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001066/0.1478, allocations: 413.1 kB / 0.7734 GB, free: 1.211 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0009311/0.1487, allocations: 469.7 kB / 0.7739 GB, free: 0.75 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007396/0.1495, allocations: 375.1 kB / 0.7742 GB, free: 392 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.2933/0.4428, allocations: 0.9117 MB / 0.7751 GB, free: 8.602 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006056/0.4434, allocations: 353.5 kB / 0.7755 GB, free: 8.586 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004702/0.4439, allocations: 340.7 kB / 0.7758 GB, free: 8.574 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004769/0.4444, allocations: 352 kB / 0.7761 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.475e-05/0.4445, allocations: 39.44 kB / 0.7762 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009389/0.4454, allocations: 402.1 kB / 0.7766 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002323/0.4457, allocations: 181.2 kB / 0.7767 GB, free: 8.48 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004105/0.4461, allocations: 321.7 kB / 0.777 GB, free: 8.379 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00139/0.4475, allocations: 0.8841 MB / 0.7779 GB, free: 8.234 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/0.4475, allocations: 1.719 kB / 0.7779 GB, free: 8.234 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.344e-06/0.4475, allocations: 0 / 0.7779 GB, free: 8.234 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.314e-05/0.4475, allocations: 0 / 0.7779 GB, free: 8.234 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.001578/0.4491, allocations: 0.9567 MB / 0.7788 GB, free: 7.609 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.4492, allocations: 11.41 kB / 0.7788 GB, free: 7.609 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.009e-05/0.4493, allocations: 93.92 kB / 0.7789 GB, free: 7.57 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001245/0.4505, allocations: 206.2 kB / 0.7791 GB, free: 7.527 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008033/0.4513, allocations: 0.5406 MB / 0.7797 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.213e-05/0.4514, allocations: 35.22 kB / 0.7797 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001004/0.4515, allocations: 44.92 kB / 0.7797 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001104/0.4526, allocations: 0.848 MB / 0.7806 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.755e-05/0.4526, allocations: 11.38 kB / 0.7806 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.401e-05/0.4527, allocations: 21.39 kB / 0.7806 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.594e-05/0.4528, allocations: 68.05 kB / 0.7807 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007346/0.4535, allocations: 0.5667 MB / 0.7812 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003565/0.4571, allocations: 5.649 MB / 0.7867 GB, free: 18.2 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005731/0.4577, allocations: 460.5 kB / 0.7872 GB, free: 18.11 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002591/0.458, allocations: 225.2 kB / 0.7874 GB, free: 18.03 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.728e-05/0.458, allocations: 5.844 kB / 0.7874 GB, free: 18.03 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.842e-05/0.458, allocations: 37.98 kB / 0.7874 GB, free: 17.98 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 2.004e-06/0.458, allocations: 0 / 0.7874 GB, free: 17.98 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33): time 0.002274/0.4603, allocations: 1.518 MB / 0.7889 GB, free: 17.05 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.4604, allocations: 56.41 kB / 0.789 GB, free: 16.99 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004211/0.4608, allocations: 0.4893 MB / 0.7894 GB, free: 16.76 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.832e-05/0.4608, allocations: 29.7 kB / 0.7895 GB, free: 16.72 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.461, allocations: 360.1 kB / 0.7898 GB, free: 16.43 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.616e-05/0.4611, allocations: 122.1 kB / 0.7899 GB, free: 16.34 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.4612, allocations: 113.7 kB / 0.79 GB, free: 16.28 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.4614, allocations: 364.9 kB / 0.7904 GB, free: 15.94 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002449/0.4616, allocations: 201.6 kB / 0.7906 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000314/0.4619, allocations: 442.5 kB / 0.791 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005729/0.4625, allocations: 0.6976 MB / 0.7917 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.4625, allocations: 2.844 kB / 0.7917 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001046/0.4636, allocations: 0.8087 MB / 0.7925 GB, free: 14.68 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.4636, allocations: 10.97 kB / 0.7925 GB, free: 14.68 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.4636, allocations: 9.094 kB / 0.7925 GB, free: 14.68 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004362/0.4641, allocations: 161.5 kB / 0.7926 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004241/0.4645, allocations: 120.6 kB / 0.7928 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002912/0.4674, allocations: 4.349 MB / 0.797 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003926/0.4678, allocations: 33.56 kB / 0.797 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.316e-05/0.4679, allocations: 31.81 kB / 0.7971 GB, free: 10.34 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.0002371/0.4681, allocations: 216.4 kB / 0.7973 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.663e-05/0.4682, allocations: 61.56 kB / 0.7973 GB, free: 10.15 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008962/0.4691, allocations: 0.5993 MB / 0.7979 GB, free: 9.879 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.4691, allocations: 4.547 kB / 0.7979 GB, free: 9.879 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.4691, allocations: 2.891 kB / 0.7979 GB, free: 9.879 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.4691, allocations: 4.781 kB / 0.7979 GB, free: 9.879 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001641/0.4708, allocations: 1.264 MB / 0.7992 GB, free: 9.188 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.4708, allocations: 3 kB / 0.7992 GB, free: 9.188 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002472/0.471, allocations: 49.2 kB / 0.7992 GB, free: 9.188 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003882/0.4714, allocations: 146.7 kB / 0.7994 GB, free: 9.121 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.502e-05/0.4715, allocations: 12.62 kB / 0.7994 GB, free: 9.113 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002877/0.4744, allocations: 4.333 MB / 0.8036 GB, free: 4.859 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4744, allocations: 1.438 kB / 0.8036 GB, free: 4.859 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009381/0.4753, allocations: 0.7162 MB / 0.8043 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000244/0.4756, allocations: 173.5 kB / 0.8045 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.248e-05/0.4756, allocations: 8.797 kB / 0.8045 GB, free: 4.285 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002558/0.4759, allocations: 23.45 kB / 0.8045 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.885e-05/0.476, allocations: 36.64 kB / 0.8045 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.977e-05/0.476, allocations: 10.97 kB / 0.8045 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003732/0.4764, allocations: 329.1 kB / 0.8049 GB, free: 4.117 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4764, allocations: 5.062 kB / 0.8049 GB, free: 4.113 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0006553/0.477, allocations: 137.7 kB / 0.805 GB, free: 4.102 MB / 0.5762 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.00129/0.4783, allocations: 1.263 MB / 0.8062 GB, free: 3.145 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001412/0.4798, allocations: 1.035 MB / 0.8072 GB, free: 2.426 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.4798, allocations: 1.094 kB / 0.8072 GB, free: 2.426 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008468/0.4806, allocations: 0.7364 MB / 0.808 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.4817, allocations: 208.5 kB / 0.8082 GB, free: 1.754 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006449/0.4881, allocations: 5.116 MB / 0.8132 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005042/0.4887, allocations: 0.905 MB / 0.814 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003729/0.489, allocations: 117.5 kB / 0.8141 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002315/0.4893, allocations: 194.7 kB / 0.8143 GB, free: 13.6 MB / 0.5919 GB Notification: Performance of SimCode: time 5.51e-07/0.4893, allocations: 0 / 0.8143 GB, free: 13.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04131/0.5306, allocations: 12.72 MB / 0.8268 GB, free: 10.16 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.304/9.835, allocations: 12.27 kB / 0.8268 GB, free: 10.16 MB / 0.5919 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)