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.004383/0.004383, allocations: 97.3 kB / 15.73 MB, free: 6.039 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.001263/0.001263, allocations: 202.2 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.429/1.429, 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.002431/0.002431, allocations: 275 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.055/1.055, allocations: 178.6 MB / 0.5074 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002786/0.002786, allocations: 105.6 kB / 0.6943 GB, free: 3.594 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4538/0.4566, allocations: 89.14 MB / 0.7813 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005537/0.4622, allocations: 3.748 MB / 0.785 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00329/0.4655, allocations: 1.785 MB / 0.7867 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002314/0.4658, allocations: 21.09 kB / 0.7868 GB, free: 10 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0009335/0.4667, allocations: 264.6 kB / 0.787 GB, free: 9.844 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0007302/0.4675, allocations: 297.2 kB / 0.7873 GB, free: 9.676 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006314/0.4681, allocations: 245.6 kB / 0.7875 GB, free: 9.559 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0007496/0.4689, allocations: 0.6017 MB / 0.7881 GB, free: 9.281 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004575/0.4693, allocations: 264.2 kB / 0.7884 GB, free: 9.16 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003393/0.4697, allocations: 231.9 kB / 0.7886 GB, free: 9.062 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000346/0.4701, allocations: 228.7 kB / 0.7888 GB, free: 8.965 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.015e-05/0.4701, allocations: 26.56 kB / 0.7888 GB, free: 8.965 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005419/0.4707, allocations: 278.3 kB / 0.7891 GB, free: 8.867 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001884/0.4709, allocations: 122.3 kB / 0.7892 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002762/0.4711, allocations: 214 kB / 0.7894 GB, free: 8.684 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0009746/0.4721, allocations: 0.5975 MB / 0.79 GB, free: 8.469 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.4721, allocations: 0 / 0.79 GB, free: 8.469 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.032e-06/0.4721, allocations: 0 / 0.79 GB, free: 8.469 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.301e-05/0.4722, allocations: 1.188 kB / 0.79 GB, free: 8.469 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001237/0.4734, allocations: 0.744 MB / 0.7907 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.4735, allocations: 10.53 kB / 0.7907 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.648e-05/0.4735, allocations: 78.2 kB / 0.7908 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000884/0.4744, allocations: 134.2 kB / 0.7909 GB, free: 7.781 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00061/0.4751, allocations: 411 kB / 0.7913 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.973e-05/0.4751, allocations: 20.88 kB / 0.7914 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.614e-05/0.4752, allocations: 31.64 kB / 0.7914 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009066/0.4761, allocations: 0.557 MB / 0.7919 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.4761, allocations: 6.188 kB / 0.7919 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.801e-05/0.4762, allocations: 13.59 kB / 0.7919 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-05/0.4762, allocations: 40.62 kB / 0.792 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007566/0.477, allocations: 409 kB / 0.7924 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003218/0.4802, allocations: 3.327 MB / 0.7956 GB, free: 3.984 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006975/0.4809, allocations: 340.7 kB / 0.796 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003262/0.4813, allocations: 181.6 kB / 0.7961 GB, free: 3.781 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.4813, allocations: 3.219 kB / 0.7961 GB, free: 3.781 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.4813, allocations: 44.09 kB / 0.7962 GB, free: 3.73 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=26): time 1.663e-06/0.4813, allocations: 0 / 0.7962 GB, free: 3.73 MB / 0.5606 GB Notification: Performance of matching and sorting (n=27): time 0.002149/0.4835, allocations: 1.071 MB / 0.7972 GB, free: 3.105 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/0.4836, allocations: 55.17 kB / 0.7973 GB, free: 3.043 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003725/0.4839, allocations: 343.5 kB / 0.7976 GB, free: 2.859 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.044e-05/0.484, allocations: 30.7 kB / 0.7976 GB, free: 2.824 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002156/0.4842, allocations: 254.7 kB / 0.7979 GB, free: 2.605 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.99e-05/0.4843, allocations: 104.2 kB / 0.798 GB, free: 2.516 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.4844, allocations: 76.58 kB / 0.798 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001662/0.4846, allocations: 342.8 kB / 0.7984 GB, free: 2.129 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002904/0.4849, allocations: 150 kB / 0.7985 GB, free: 2.059 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004154/0.4853, allocations: 291.1 kB / 0.7988 GB, free: 1.801 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007318/0.4861, allocations: 482.2 kB / 0.7992 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.4861, allocations: 2.219 kB / 0.7992 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00104/0.4871, allocations: 0.565 MB / 0.7998 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.4871, allocations: 6.938 kB / 0.7998 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.4872, allocations: 8.875 kB / 0.7998 GB, free: 1.125 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003284/0.4875, allocations: 85.38 kB / 0.7999 GB, free: 1.07 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003394/0.4878, allocations: 88.39 kB / 0.8 GB, free: 1.047 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.781e-05/0.4879, allocations: 14.77 kB / 0.8 GB, free: 1.039 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002602/0.4881, allocations: 25.62 kB / 0.8 GB, free: 1.027 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.161e-05/0.4882, allocations: 19.31 kB / 0.8 GB, free: 1.023 MB / 0.5606 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.0002078/0.4884, allocations: 179.3 kB / 0.8002 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.421e-05/0.4885, allocations: 43.69 kB / 0.8003 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009414/0.4894, allocations: 462.8 kB / 0.8007 GB, free: 0.5586 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.4894, allocations: 2.219 kB / 0.8007 GB, free: 0.5586 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.4895, allocations: 5.156 kB / 0.8007 GB, free: 0.5547 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.4895, allocations: 1.156 kB / 0.8007 GB, free: 0.5547 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001519/0.491, allocations: 0.9577 MB / 0.8016 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.491, allocations: 1.25 kB / 0.8016 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002412/0.4913, allocations: 56.58 kB / 0.8017 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002391/0.4915, allocations: 75.92 kB / 0.8018 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.4915, allocations: 6.219 kB / 0.8018 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.4915, allocations: 2.281 kB / 0.8018 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.4916, allocations: 5.406 kB / 0.8018 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008741/0.4924, allocations: 0.5499 MB / 0.8023 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/0.4926, allocations: 138.9 kB / 0.8024 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.426e-05/0.4927, allocations: 10.05 kB / 0.8025 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/0.4929, allocations: 25.89 kB / 0.8025 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.249e-05/0.493, allocations: 26.98 kB / 0.8025 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.072e-05/0.493, allocations: 9.719 kB / 0.8025 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002435/0.4933, allocations: 237.3 kB / 0.8027 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4933, allocations: 5.094 kB / 0.8027 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0004285/0.4937, allocations: 87.97 kB / 0.8028 GB, free: 15.04 MB / 0.5762 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.001185/0.4949, allocations: 1.093 MB / 0.8039 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009293/0.4958, allocations: 0.6385 MB / 0.8045 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4959, allocations: 0 / 0.8045 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004818/0.4963, allocations: 434.7 kB / 0.8049 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007203/0.4971, allocations: 130.9 kB / 0.8051 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004913/0.502, allocations: 3.738 MB / 0.8087 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004411/0.5025, allocations: 0.8253 MB / 0.8095 GB, free: 9.609 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002461/0.5027, allocations: 83.81 kB / 0.8096 GB, free: 9.57 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001876/0.5029, allocations: 128.7 kB / 0.8097 GB, free: 9.465 MB / 0.5762 GB Notification: Performance of SimCode: time 4e-07/0.5029, allocations: 3.938 kB / 0.8097 GB, free: 9.461 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03152/0.5344, allocations: 8.33 MB / 0.8179 GB, free: 5.484 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.961/10.5, allocations: 5.359 kB / 0.8179 GB, free: 5.48 MB / 0.5762 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)