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.001098/0.001098, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 192.6 kB / 16.53 MB, free: 6.664 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.345/1.345, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002179/0.002179, allocations: 275 kB / 290.7 MB, free: 2.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9879/0.9879, allocations: 169.2 MB / 0.4982 GB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002037/0.002037, allocations: 108.9 kB / 0.5954 GB, free: 27.89 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.141, allocations: 86.97 MB / 0.6803 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.00717/0.1482, allocations: 4.829 MB / 0.685 GB, free: 11.75 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005092/0.1533, allocations: 2.462 MB / 0.6874 GB, free: 9.285 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005542/0.1539, allocations: 23.81 kB / 0.6874 GB, free: 9.262 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0013/0.1552, allocations: 405.9 kB / 0.6878 GB, free: 8.863 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001278/0.1565, allocations: 449.6 kB / 0.6883 GB, free: 8.422 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009437/0.1575, allocations: 374.1 kB / 0.6886 GB, free: 8.059 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001257/0.1588, allocations: 0.9018 MB / 0.6895 GB, free: 7.156 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006176/0.1594, allocations: 362.4 kB / 0.6898 GB, free: 6.797 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000566/0.16, allocations: 334.7 kB / 0.6902 GB, free: 6.469 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005592/0.1605, allocations: 350.4 kB / 0.6905 GB, free: 6.125 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.98e-05/0.1606, allocations: 40 kB / 0.6905 GB, free: 6.086 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007634/0.1614, allocations: 399.1 kB / 0.6909 GB, free: 5.695 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002255/0.1616, allocations: 179.4 kB / 0.6911 GB, free: 5.52 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003729/0.162, allocations: 318.2 kB / 0.6914 GB, free: 5.207 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001129/0.1632, allocations: 0.8682 MB / 0.6922 GB, free: 4.336 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1632, allocations: 4 kB / 0.6922 GB, free: 4.332 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1632, allocations: 0 / 0.6922 GB, free: 4.332 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.34e-05/0.1632, allocations: 0 / 0.6922 GB, free: 4.332 MB / 494.1 MB 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.001719/0.165, allocations: 0.9424 MB / 0.6932 GB, free: 3.34 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.165, allocations: 8.031 kB / 0.6932 GB, free: 3.332 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001498/0.1652, allocations: 90.7 kB / 0.6933 GB, free: 3.234 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001386/0.1666, allocations: 199.9 kB / 0.6934 GB, free: 3.039 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000787/0.1674, allocations: 498.2 kB / 0.6939 GB, free: 2.516 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.656e-05/0.1674, allocations: 33.36 kB / 0.6939 GB, free: 2.48 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.775e-05/0.1675, allocations: 44.28 kB / 0.694 GB, free: 2.438 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.1687, allocations: 0.8446 MB / 0.6948 GB, free: 1.465 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.499e-05/0.1688, allocations: 11.94 kB / 0.6948 GB, free: 1.453 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.793e-05/0.1688, allocations: 27.98 kB / 0.6949 GB, free: 1.426 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.868e-05/0.1689, allocations: 60.95 kB / 0.6949 GB, free: 1.367 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008615/0.1698, allocations: 0.5695 MB / 0.6955 GB, free: 0.793 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004685/0.1745, allocations: 5.651 MB / 0.701 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006445/0.1751, allocations: 458.2 kB / 0.7014 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003103/0.1755, allocations: 232.7 kB / 0.7016 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.772e-05/0.1755, allocations: 4 kB / 0.7016 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.1755, allocations: 38.56 kB / 0.7017 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=32): time 2.254e-06/0.1755, allocations: 4 kB / 0.7017 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.002552/0.1781, allocations: 1.498 MB / 0.7032 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.82e-05/0.1782, allocations: 55.69 kB / 0.7032 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000534/0.1787, allocations: 0.4911 MB / 0.7037 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.742e-05/0.1788, allocations: 29.7 kB / 0.7037 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002403/0.179, allocations: 358.8 kB / 0.7041 GB, free: 7.434 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.1791, allocations: 118.3 kB / 0.7042 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.1793, allocations: 114.2 kB / 0.7043 GB, free: 7.199 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.1794, allocations: 366.8 kB / 0.7046 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002853/0.1797, allocations: 193.2 kB / 0.7048 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004431/0.1802, allocations: 451.3 kB / 0.7052 GB, free: 6.086 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007922/0.181, allocations: 0.6882 MB / 0.7059 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.181, allocations: 4 kB / 0.7059 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001253/0.1822, allocations: 0.8056 MB / 0.7067 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.544e-05/0.1823, allocations: 8 kB / 0.7067 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.1823, allocations: 12.16 kB / 0.7067 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004873/0.1828, allocations: 160 kB / 0.7069 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004462/0.1832, allocations: 115.8 kB / 0.707 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003266/0.1865, allocations: 4.344 MB / 0.7112 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003823/0.1869, allocations: 35.97 kB / 0.7113 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.084e-05/0.187, allocations: 28 kB / 0.7113 GB, free: 15.32 MB / 0.5137 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.0002542/0.1872, allocations: 220.4 kB / 0.7115 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.1873, allocations: 59.34 kB / 0.7116 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009752/0.1883, allocations: 0.6006 MB / 0.7121 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1883, allocations: 4 kB / 0.7121 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.1884, allocations: 0 / 0.7121 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.1884, allocations: 7.984 kB / 0.7122 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001899/0.1903, allocations: 1.261 MB / 0.7134 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.1903, allocations: 8.031 kB / 0.7134 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004435/0.1908, allocations: 59.89 kB / 0.7135 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006465/0.1914, allocations: 144.1 kB / 0.7136 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.659e-05/0.1915, allocations: 11.94 kB / 0.7136 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004645/0.1961, allocations: 4.333 MB / 0.7178 GB, free: 8.066 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.1962, allocations: 0 / 0.7178 GB, free: 8.066 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001682/0.1978, allocations: 0.716 MB / 0.7185 GB, free: 7.297 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002903/0.1981, allocations: 164.3 kB / 0.7187 GB, free: 7.117 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.309e-05/0.1982, allocations: 12 kB / 0.7187 GB, free: 7.105 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002927/0.1985, allocations: 27.97 kB / 0.7187 GB, free: 7.078 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.886e-05/0.1986, allocations: 31.89 kB / 0.7188 GB, free: 7.047 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.94e-05/0.1987, allocations: 12 kB / 0.7188 GB, free: 7.035 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000357/0.199, allocations: 330.8 kB / 0.7191 GB, free: 6.715 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.51e-07/0.199, allocations: 0 / 0.7191 GB, free: 6.715 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0009391/0.2, allocations: 144 kB / 0.7192 GB, free: 6.574 MB / 0.5137 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.001969/0.202, allocations: 1.254 MB / 0.7204 GB, free: 5.254 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002247/0.2042, allocations: 1.087 MB / 0.7215 GB, free: 4.086 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.842e-06/0.2042, allocations: 0 / 0.7215 GB, free: 4.086 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001212/0.2055, allocations: 0.7306 MB / 0.7222 GB, free: 3.273 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001657/0.2071, allocations: 205.4 kB / 0.7224 GB, free: 3.082 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01017/0.2173, allocations: 5.203 MB / 0.7275 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007408/0.2181, allocations: 0.9058 MB / 0.7284 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0006699/0.2188, allocations: 121.3 kB / 0.7285 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003822/0.2192, allocations: 195.4 kB / 0.7287 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of SimCode: time 1.442e-06/0.2192, allocations: 0 / 0.7287 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05205/0.2713, allocations: 12.55 MB / 0.7409 GB, free: 15.96 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.42/10.69, allocations: 15.97 kB / 0.741 GB, free: 15.95 MB / 0.545 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_TestImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1)