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.005374/0.005374, allocations: 97.28 kB / 15.73 MB, free: 6.031 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.001319/0.001319, allocations: 194.6 kB / 16.68 MB, free: 5.961 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002562/0.002562, allocations: 294.1 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.023/1.023, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002736/0.002736, allocations: 90.97 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1657/0.1684, allocations: 86.97 MB / 0.7659 GB, free: 8.938 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.006723/0.1752, allocations: 4.852 MB / 0.7706 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004151/0.1794, allocations: 2.44 MB / 0.773 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003723/0.1798, allocations: 23.81 kB / 0.773 GB, free: 1.59 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001226/0.181, allocations: 401.9 kB / 0.7734 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001064/0.1821, allocations: 445.7 kB / 0.7739 GB, free: 0.7578 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000863/0.183, allocations: 378.7 kB / 0.7742 GB, free: 400 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.2988/0.4818, allocations: 0.9114 MB / 0.7751 GB, free: 8.672 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000623/0.4825, allocations: 352.3 kB / 0.7754 GB, free: 8.656 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005007/0.483, allocations: 337.9 kB / 0.7758 GB, free: 8.645 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004376/0.4834, allocations: 349.9 kB / 0.7761 GB, free: 8.574 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.008e-05/0.4835, allocations: 38.78 kB / 0.7761 GB, free: 8.574 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006934/0.4842, allocations: 399.8 kB / 0.7765 GB, free: 8.574 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001825/0.4844, allocations: 182.1 kB / 0.7767 GB, free: 8.551 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002973/0.4847, allocations: 317.4 kB / 0.777 GB, free: 8.449 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001078/0.4858, allocations: 0.8875 MB / 0.7779 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.4858, allocations: 0.6875 kB / 0.7779 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.563e-06/0.4858, allocations: 1.156 kB / 0.7779 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.146e-05/0.4858, allocations: 0.7188 kB / 0.7779 GB, free: 8.305 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.001308/0.4871, allocations: 0.9631 MB / 0.7788 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/0.4872, allocations: 10.09 kB / 0.7788 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001363/0.4874, allocations: 90.89 kB / 0.7789 GB, free: 7.641 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00127/0.4886, allocations: 206 kB / 0.7791 GB, free: 7.598 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007189/0.4894, allocations: 0.539 MB / 0.7796 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.85e-05/0.4894, allocations: 34.92 kB / 0.7797 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.903e-05/0.4895, allocations: 50.38 kB / 0.7797 GB, free: 7.312 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009831/0.4905, allocations: 0.8543 MB / 0.7805 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.919e-05/0.4905, allocations: 7.594 kB / 0.7805 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.951e-05/0.4906, allocations: 19.39 kB / 0.7806 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.112e-05/0.4907, allocations: 65.3 kB / 0.7806 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007789/0.4915, allocations: 0.5727 MB / 0.7812 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003861/0.4953, allocations: 5.639 MB / 0.7867 GB, free: 18.28 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005822/0.4959, allocations: 462.9 kB / 0.7871 GB, free: 18.16 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002901/0.4962, allocations: 229.9 kB / 0.7873 GB, free: 18.08 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.801e-05/0.4963, allocations: 6.812 kB / 0.7874 GB, free: 18.08 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.4963, allocations: 37.23 kB / 0.7874 GB, free: 18.04 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 1.733e-06/0.4963, allocations: 0 / 0.7874 GB, free: 18.04 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33): time 0.00258/0.4989, allocations: 1.516 MB / 0.7889 GB, free: 17.11 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.008e-05/0.499, allocations: 55.69 kB / 0.7889 GB, free: 17.04 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004826/0.4994, allocations: 0.4897 MB / 0.7894 GB, free: 16.81 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.388e-05/0.4995, allocations: 32.45 kB / 0.7894 GB, free: 16.77 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/0.4997, allocations: 359.5 kB / 0.7898 GB, free: 16.48 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.742e-05/0.4998, allocations: 124.8 kB / 0.7899 GB, free: 16.39 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000132/0.4999, allocations: 111.6 kB / 0.79 GB, free: 16.33 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000169/0.5001, allocations: 363.6 kB / 0.7903 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002661/0.5004, allocations: 192 kB / 0.7905 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003515/0.5007, allocations: 450.8 kB / 0.791 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006114/0.5013, allocations: 0.6939 MB / 0.7916 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.5013, allocations: 3.406 kB / 0.7916 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001094/0.5024, allocations: 0.814 MB / 0.7924 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.5025, allocations: 7.062 kB / 0.7924 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.5025, allocations: 8.938 kB / 0.7925 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004466/0.5029, allocations: 162.4 kB / 0.7926 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004216/0.5034, allocations: 124.4 kB / 0.7927 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003411/0.5068, allocations: 4.35 MB / 0.797 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004132/0.5072, allocations: 31.95 kB / 0.797 GB, free: 10.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.845e-05/0.5073, allocations: 31.02 kB / 0.797 GB, free: 10.39 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.0002738/0.5075, allocations: 218.1 kB / 0.7972 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.609e-05/0.5076, allocations: 61.39 kB / 0.7973 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000936/0.5086, allocations: 0.596 MB / 0.7979 GB, free: 9.93 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.5086, allocations: 2.781 kB / 0.7979 GB, free: 9.93 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.5086, allocations: 3.188 kB / 0.7979 GB, free: 9.93 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.5086, allocations: 4.641 kB / 0.7979 GB, free: 9.93 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001646/0.5103, allocations: 1.261 MB / 0.7991 GB, free: 9.246 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.5103, allocations: 3.062 kB / 0.7991 GB, free: 9.246 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002503/0.5105, allocations: 60.94 kB / 0.7992 GB, free: 9.238 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004035/0.5109, allocations: 145.2 kB / 0.7993 GB, free: 9.172 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.718e-05/0.511, allocations: 10.78 kB / 0.7993 GB, free: 9.164 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003499/0.5145, allocations: 4.337 MB / 0.8036 GB, free: 4.895 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.5145, allocations: 8.422 kB / 0.8036 GB, free: 4.891 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009997/0.5155, allocations: 0.7053 MB / 0.8043 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002231/0.5157, allocations: 175.7 kB / 0.8044 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.325e-05/0.5158, allocations: 8.172 kB / 0.8044 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002624/0.5161, allocations: 22.39 kB / 0.8045 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.277e-05/0.5162, allocations: 40.98 kB / 0.8045 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.5162, allocations: 6.281 kB / 0.8045 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003972/0.5166, allocations: 332.9 kB / 0.8048 GB, free: 4.152 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/0.5166, allocations: 0 / 0.8048 GB, free: 4.152 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0006476/0.5172, allocations: 143.9 kB / 0.805 GB, free: 4.137 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.001365/0.5186, allocations: 1.261 MB / 0.8062 GB, free: 3.18 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001454/0.5201, allocations: 1.038 MB / 0.8072 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.5201, allocations: 1.188 kB / 0.8072 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008944/0.521, allocations: 0.7307 MB / 0.8079 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009995/0.522, allocations: 208.5 kB / 0.8081 GB, free: 1.785 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007002/0.529, allocations: 5.121 MB / 0.8131 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005656/0.5296, allocations: 0.9061 MB / 0.814 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.000387/0.53, allocations: 117.6 kB / 0.8141 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002629/0.5303, allocations: 194.5 kB / 0.8143 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of SimCode: time 6.01e-07/0.5303, allocations: 4 kB / 0.8143 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04694/0.5772, allocations: 12.73 MB / 0.8267 GB, free: 10.16 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/11.19, allocations: 7.516 kB / 0.8267 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)