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.0009292/0.0009293, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005435/0.005436, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.308/1.308, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001665/0.001665, allocations: 273.2 kB / 291.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.917/0.917, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004332/0.000433, allocations: 13 kB / 0.5988 GB, free: 27.88 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1519, allocations: 88.55 MB / 0.6853 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.004832/0.1567, allocations: 4.454 MB / 0.6896 GB, free: 10.48 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003326/0.1601, allocations: 2.433 MB / 0.692 GB, free: 8.043 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002011/0.1603, allocations: 20.34 kB / 0.692 GB, free: 8.023 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000225/0.1605, allocations: 93.61 kB / 0.6921 GB, free: 7.934 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007547/0.1613, allocations: 407.9 kB / 0.6925 GB, free: 7.535 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006344/0.1619, allocations: 345.5 kB / 0.6928 GB, free: 7.203 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000957/0.1629, allocations: 1.129 MB / 0.6939 GB, free: 6.074 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000666/0.1636, allocations: 459 kB / 0.6943 GB, free: 5.602 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003347/0.1639, allocations: 298.5 kB / 0.6946 GB, free: 5.309 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003677/0.1643, allocations: 334.5 kB / 0.695 GB, free: 4.98 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.133e-05/0.1643, allocations: 24 kB / 0.695 GB, free: 4.957 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006313/0.165, allocations: 499 kB / 0.6954 GB, free: 4.469 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.1651, allocations: 159.4 kB / 0.6956 GB, free: 4.312 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000253/0.1654, allocations: 319.9 kB / 0.6959 GB, free: 3.992 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007559/0.1662, allocations: 0.8796 MB / 0.6968 GB, free: 3.109 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1662, allocations: 0 / 0.6968 GB, free: 3.109 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1662, allocations: 0 / 0.6968 GB, free: 3.109 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.605e-06/0.1662, allocations: 0 / 0.6968 GB, free: 3.109 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.001099/0.1673, allocations: 0.8257 MB / 0.6976 GB, free: 2.234 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.1674, allocations: 8.031 kB / 0.6976 GB, free: 2.227 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001009/0.1675, allocations: 98.62 kB / 0.6977 GB, free: 2.121 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001164/0.1686, allocations: 195.9 kB / 0.6979 GB, free: 1.93 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005953/0.1692, allocations: 498.3 kB / 0.6983 GB, free: 1.406 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.33e-05/0.1693, allocations: 41.36 kB / 0.6984 GB, free: 1.363 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.157e-05/0.1694, allocations: 40.38 kB / 0.6984 GB, free: 1.324 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009937/0.1704, allocations: 0.8485 MB / 0.6992 GB, free: 356 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.1704, allocations: 11.84 kB / 0.6993 GB, free: 344 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.122e-05/0.1704, allocations: 23.98 kB / 0.6993 GB, free: 320 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.932e-05/0.1705, allocations: 60.95 kB / 0.6993 GB, free: 260 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007864/0.1713, allocations: 0.5772 MB / 0.6999 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004009/0.1753, allocations: 5.643 MB / 0.7054 GB, free: 9.641 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005944/0.176, allocations: 454.2 kB / 0.7058 GB, free: 9.188 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002846/0.1762, allocations: 232.7 kB / 0.7061 GB, free: 8.957 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.1763, allocations: 4 kB / 0.7061 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/0.1763, allocations: 38.56 kB / 0.7061 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=32): time 1.322e-06/0.1763, allocations: 0 / 0.7061 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.002329/0.1786, allocations: 1.501 MB / 0.7076 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/0.1787, allocations: 59.69 kB / 0.7076 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004968/0.1792, allocations: 498.9 kB / 0.7081 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.803e-05/0.1792, allocations: 29.7 kB / 0.7081 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002098/0.1795, allocations: 366.8 kB / 0.7085 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.483e-05/0.1795, allocations: 114.4 kB / 0.7086 GB, free: 6.207 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.202e-05/0.1796, allocations: 49.69 kB / 0.7086 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.1797, allocations: 366.8 kB / 0.709 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002576/0.18, allocations: 197.2 kB / 0.7092 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004063/0.1804, allocations: 451.3 kB / 0.7096 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007258/0.1812, allocations: 0.6882 MB / 0.7103 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1812, allocations: 4 kB / 0.7103 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001158/0.1823, allocations: 0.8135 MB / 0.7111 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.1824, allocations: 8 kB / 0.7111 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.1824, allocations: 8 kB / 0.7111 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004716/0.1829, allocations: 148.1 kB / 0.7112 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004132/0.1833, allocations: 123.8 kB / 0.7113 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002821/0.1861, allocations: 4.032 MB / 0.7153 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003271/0.1864, allocations: 35.97 kB / 0.7153 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.609e-05/0.1865, allocations: 32.16 kB / 0.7154 GB, free: 14.6 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.0002215/0.1867, allocations: 214.9 kB / 0.7156 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.912e-05/0.1868, allocations: 59.25 kB / 0.7156 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009756/0.1878, allocations: 0.601 MB / 0.7162 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.1878, allocations: 4 kB / 0.7162 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1878, allocations: 3.938 kB / 0.7162 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.1878, allocations: 3.984 kB / 0.7162 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001624/0.1895, allocations: 1.27 MB / 0.7175 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.1895, allocations: 4 kB / 0.7175 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002412/0.1897, allocations: 51.89 kB / 0.7175 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003855/0.1901, allocations: 148.3 kB / 0.7176 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/0.1902, allocations: 8 kB / 0.7177 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002689/0.1929, allocations: 4.028 MB / 0.7216 GB, free: 7.676 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.1929, allocations: 4 kB / 0.7216 GB, free: 7.672 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008842/0.1938, allocations: 0.6999 MB / 0.7223 GB, free: 6.918 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001707/0.1939, allocations: 168.3 kB / 0.7224 GB, free: 6.734 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.842e-05/0.194, allocations: 15.92 kB / 0.7225 GB, free: 6.719 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002439/0.1943, allocations: 23.97 kB / 0.7225 GB, free: 6.695 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.277e-05/0.1943, allocations: 31.91 kB / 0.7225 GB, free: 6.664 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/0.1943, allocations: 12 kB / 0.7225 GB, free: 6.652 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003455/0.1947, allocations: 334.8 kB / 0.7228 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1947, allocations: 0 / 0.7228 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006557/0.1954, allocations: 140 kB / 0.723 GB, free: 6.191 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.001281/0.1967, allocations: 1.263 MB / 0.7242 GB, free: 4.863 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001418/0.1981, allocations: 1.037 MB / 0.7252 GB, free: 3.746 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.1981, allocations: 4 kB / 0.7252 GB, free: 3.742 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0007997/0.1989, allocations: 0.7337 MB / 0.7259 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/0.2, allocations: 184.8 kB / 0.7261 GB, free: 2.75 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006021/0.206, allocations: 5.413 MB / 0.7314 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004311/0.2065, allocations: 0.9097 MB / 0.7323 GB, free: 12.01 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003567/0.2068, allocations: 121.3 kB / 0.7324 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002259/0.2071, allocations: 191.4 kB / 0.7326 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of SimCode: time 4.31e-07/0.2071, allocations: 0 / 0.7326 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02603/0.2331, allocations: 12.04 MB / 0.7443 GB, free: 15.98 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001862/0.2333, allocations: 249.5 kB / 0.7446 GB, free: 15.73 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.844/2.077, allocations: 0 / 0.7446 GB, free: 15.73 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)