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: translateModel(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") translateModel(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001522/0.001522, allocations: 190.6 kB / 16.25 MB, free: 6.637 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.476/1.476, allocations: 222.9 MB / 239.9 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002579/0.002579, allocations: 298.7 kB / 290.4 MB, free: 2.172 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.084/1.084, allocations: 178.6 MB / 0.5069 GB, free: 4.734 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002802/0.002802, allocations: 101.6 kB / 0.6059 GB, free: 25.17 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1655/0.1683, allocations: 89.17 MB / 0.693 GB, free: 4.699 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005848/0.1742, allocations: 3.771 MB / 0.6967 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003109/0.1773, allocations: 1.781 MB / 0.6984 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002396/0.1776, allocations: 11.94 kB / 0.6984 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000906/0.1785, allocations: 243 kB / 0.6987 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0007103/0.1792, allocations: 282.7 kB / 0.6989 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005959/0.1798, allocations: 217.8 kB / 0.6991 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0006749/0.1805, allocations: 0.6049 MB / 0.6997 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005157/0.1811, allocations: 290.8 kB / 0.7 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003274/0.1814, allocations: 235 kB / 0.7002 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003204/0.1817, allocations: 242.9 kB / 0.7005 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.507e-05/0.1818, allocations: 28 kB / 0.7005 GB, free: 13 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004489/0.1822, allocations: 275.4 kB / 0.7008 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.1824, allocations: 115.6 kB / 0.7009 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002078/0.1826, allocations: 206.9 kB / 0.7011 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000714/0.1833, allocations: 0.6112 MB / 0.7017 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.1833, allocations: 4 kB / 0.7017 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.673e-06/0.1834, allocations: 3.938 kB / 0.7017 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.158e-05/0.1834, allocations: 0 / 0.7017 GB, free: 11.8 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.001257/0.1846, allocations: 0.7323 MB / 0.7024 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.1847, allocations: 15.97 kB / 0.7024 GB, free: 11 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008991/0.1856, allocations: 128.2 kB / 0.7025 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000518/0.1861, allocations: 375.7 kB / 0.7029 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.977e-05/0.1862, allocations: 25.02 kB / 0.7029 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.86e-05/0.1862, allocations: 32.38 kB / 0.7029 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008895/0.1871, allocations: 0.5433 MB / 0.7035 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.252e-05/0.1872, allocations: 7.938 kB / 0.7035 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.25e-05/0.1872, allocations: 19.98 kB / 0.7035 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.716e-05/0.1873, allocations: 44.53 kB / 0.7035 GB, free: 9.73 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007577/0.188, allocations: 409.7 kB / 0.7039 GB, free: 9.332 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003192/0.1912, allocations: 3.33 MB / 0.7072 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007302/0.192, allocations: 346.3 kB / 0.7075 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003147/0.1923, allocations: 173.4 kB / 0.7077 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.478e-05/0.1923, allocations: 0 / 0.7077 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.1924, allocations: 38.56 kB / 0.7077 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=26): time 1.352e-06/0.1924, allocations: 4 kB / 0.7077 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of matching and sorting (n=27): time 0.002163/0.1946, allocations: 1.063 MB / 0.7087 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.887e-05/0.1946, allocations: 55.64 kB / 0.7088 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003662/0.195, allocations: 337.6 kB / 0.7091 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.036e-05/0.195, allocations: 29.7 kB / 0.7092 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001889/0.1952, allocations: 247.5 kB / 0.7094 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.199e-05/0.1953, allocations: 94.64 kB / 0.7095 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001293/0.1955, allocations: 82.03 kB / 0.7096 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001803/0.1957, allocations: 350.7 kB / 0.7099 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002913/0.196, allocations: 148.8 kB / 0.71 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004153/0.1964, allocations: 290.5 kB / 0.7103 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007386/0.1971, allocations: 484 kB / 0.7108 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1971, allocations: 0 / 0.7108 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001064/0.1982, allocations: 0.5612 MB / 0.7113 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.1982, allocations: 8 kB / 0.7113 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.1983, allocations: 4 kB / 0.7113 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003239/0.1986, allocations: 91.06 kB / 0.7114 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003655/0.199, allocations: 91.81 kB / 0.7115 GB, free: 1.031 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.199, allocations: 8 kB / 0.7115 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000267/0.1993, allocations: 31.91 kB / 0.7115 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.027e-05/0.1993, allocations: 19.94 kB / 0.7116 GB, free: 0.9727 MB / 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.0002237/0.1995, allocations: 177.6 kB / 0.7117 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.113e-05/0.1996, allocations: 43.53 kB / 0.7118 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009259/0.2005, allocations: 464 kB / 0.7122 GB, free: 284 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.533e-06/0.2006, allocations: 4 kB / 0.7122 GB, free: 280 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.2006, allocations: 0 / 0.7122 GB, free: 280 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.2006, allocations: 0 / 0.7122 GB, free: 280 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001513/0.2021, allocations: 0.9637 MB / 0.7132 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.2021, allocations: 0 / 0.7132 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002426/0.2024, allocations: 51.89 kB / 0.7132 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002495/0.2026, allocations: 86.61 kB / 0.7133 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.2027, allocations: 4 kB / 0.7133 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.2027, allocations: 4 kB / 0.7133 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.2027, allocations: 3.938 kB / 0.7133 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000875/0.2036, allocations: 0.5467 MB / 0.7138 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001683/0.2037, allocations: 140.6 kB / 0.714 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.56e-05/0.2038, allocations: 12 kB / 0.714 GB, free: 14.33 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002296/0.204, allocations: 15.97 kB / 0.714 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.728e-05/0.2041, allocations: 27.91 kB / 0.714 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.2041, allocations: 12 kB / 0.714 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002454/0.2044, allocations: 235.2 kB / 0.7143 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.61e-07/0.2044, allocations: 0 / 0.7143 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004227/0.2048, allocations: 84 kB / 0.7143 GB, free: 13.96 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.0001375/0.205, allocations: 111.1 kB / 0.7144 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001022/0.206, allocations: 0.6663 MB / 0.7151 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.206, allocations: 0 / 0.7151 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000512/0.2065, allocations: 438.8 kB / 0.7155 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007199/0.2073, allocations: 138.4 kB / 0.7156 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.2086, allocations: 0.8682 MB / 0.7165 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004926/0.2091, allocations: 0.8273 MB / 0.7173 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002717/0.2094, allocations: 79.36 kB / 0.7174 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.759e-05/0.2095, allocations: 27.44 kB / 0.7174 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of SimCode: time 8.92e-07/0.2095, allocations: 0 / 0.7174 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of Templates: time 0.01018/0.2197, allocations: 4.682 MB / 0.722 GB, free: 6.008 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (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 & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)