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.001344/0.001344, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00135/0.00135, allocations: 195.1 kB / 16.14 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.439/1.439, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002639/0.002639, allocations: 290.6 kB / 290.2 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.086/1.086, allocations: 178.6 MB / 0.5068 GB, free: 4.793 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002784/0.002784, allocations: 95.94 kB / 0.6057 GB, free: 25.11 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1603, allocations: 89.15 MB / 0.6928 GB, free: 4.844 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005503/0.1659, allocations: 3.78 MB / 0.6965 GB, free: 1.059 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002989/0.1689, allocations: 1.799 MB / 0.6982 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001852/0.1691, allocations: 19.88 kB / 0.6983 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008201/0.1699, allocations: 242.9 kB / 0.6985 GB, free: 15 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00062/0.1705, allocations: 282.7 kB / 0.6988 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000517/0.1711, allocations: 223.1 kB / 0.699 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007899/0.1719, allocations: 0.7491 MB / 0.6997 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004682/0.1723, allocations: 246.2 kB / 0.6999 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003115/0.1727, allocations: 207.1 kB / 0.7001 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003214/0.173, allocations: 235 kB / 0.7004 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.497e-05/0.173, allocations: 20 kB / 0.7004 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005765/0.1736, allocations: 343.3 kB / 0.7007 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.1738, allocations: 111.6 kB / 0.7008 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002188/0.174, allocations: 198.8 kB / 0.701 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007217/0.1747, allocations: 0.6033 MB / 0.7016 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1747, allocations: 0 / 0.7016 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of FrontEnd: time 8.31e-07/0.1748, allocations: 0 / 0.7016 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.162e-06/0.1748, allocations: 0 / 0.7016 GB, free: 11.81 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.001261/0.176, allocations: 0.7401 MB / 0.7023 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.1761, allocations: 8.031 kB / 0.7023 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009087/0.177, allocations: 128.2 kB / 0.7025 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005145/0.1775, allocations: 371.7 kB / 0.7028 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/0.1775, allocations: 25.02 kB / 0.7028 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.091e-05/0.1776, allocations: 32.31 kB / 0.7029 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009169/0.1785, allocations: 0.5511 MB / 0.7034 GB, free: 9.812 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.1786, allocations: 4 kB / 0.7034 GB, free: 9.809 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.894e-05/0.1786, allocations: 12 kB / 0.7034 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.846e-05/0.1787, allocations: 44.53 kB / 0.7035 GB, free: 9.75 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007566/0.1795, allocations: 409.7 kB / 0.7038 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003156/0.1826, allocations: 3.333 MB / 0.7071 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007125/0.1834, allocations: 342.4 kB / 0.7074 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003209/0.1837, allocations: 181.3 kB / 0.7076 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.1837, allocations: 4 kB / 0.7076 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.731e-05/0.1838, allocations: 30.56 kB / 0.7076 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=26): time 1.623e-06/0.1838, allocations: 0 / 0.7076 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of matching and sorting (n=27): time 0.002143/0.1859, allocations: 1.067 MB / 0.7087 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.186, allocations: 55.64 kB / 0.7087 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003734/0.1864, allocations: 333.6 kB / 0.7091 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3e-05/0.1864, allocations: 29.7 kB / 0.7091 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.1866, allocations: 251.5 kB / 0.7093 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.253e-05/0.1867, allocations: 94.59 kB / 0.7094 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.1868, allocations: 85.97 kB / 0.7095 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001651/0.187, allocations: 346.8 kB / 0.7098 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002947/0.1873, allocations: 152.7 kB / 0.71 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003994/0.1877, allocations: 286.5 kB / 0.7102 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007459/0.1885, allocations: 487.9 kB / 0.7107 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1885, allocations: 4 kB / 0.7107 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001054/0.1895, allocations: 0.5535 MB / 0.7112 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.1896, allocations: 8 kB / 0.7113 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.1896, allocations: 4 kB / 0.7113 GB, free: 1.234 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003381/0.1899, allocations: 94.97 kB / 0.7114 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003634/0.1903, allocations: 91.88 kB / 0.7114 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.507e-05/0.1903, allocations: 11.94 kB / 0.7115 GB, free: 1.031 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000265/0.1906, allocations: 31.91 kB / 0.7115 GB, free: 1 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.971e-05/0.1906, allocations: 16 kB / 0.7115 GB, free: 0.9844 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.0002111/0.1908, allocations: 169.7 kB / 0.7117 GB, free: 0.8086 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.654e-05/0.1909, allocations: 47.52 kB / 0.7117 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009505/0.1919, allocations: 463.9 kB / 0.7121 GB, free: 300 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.1919, allocations: 4 kB / 0.7121 GB, free: 296 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.1919, allocations: 0 / 0.7121 GB, free: 296 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.1919, allocations: 0 / 0.7121 GB, free: 296 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001568/0.1935, allocations: 0.9637 MB / 0.7131 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1935, allocations: 0 / 0.7131 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002458/0.1938, allocations: 59.89 kB / 0.7131 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002579/0.194, allocations: 86.59 kB / 0.7132 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.265e-05/0.1941, allocations: 8 kB / 0.7132 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.1941, allocations: 0 / 0.7132 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1941, allocations: 0 / 0.7132 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009156/0.195, allocations: 0.5506 MB / 0.7138 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/0.1952, allocations: 132.6 kB / 0.7139 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.437e-05/0.1952, allocations: 11.98 kB / 0.7139 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002228/0.1955, allocations: 19.97 kB / 0.7139 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.854e-05/0.1955, allocations: 31.84 kB / 0.714 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-05/0.1956, allocations: 8 kB / 0.714 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002616/0.1958, allocations: 235.2 kB / 0.7142 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1958, allocations: 0 / 0.7142 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004155/0.1963, allocations: 84 kB / 0.7143 GB, free: 13.97 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.0001454/0.1964, allocations: 107.2 kB / 0.7144 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0009655/0.1974, allocations: 0.6273 MB / 0.715 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1974, allocations: 3.938 kB / 0.715 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0005197/0.1979, allocations: 446.2 kB / 0.7154 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007097/0.1986, allocations: 123.6 kB / 0.7155 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.1999, allocations: 0.8676 MB / 0.7164 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000513/0.2004, allocations: 0.8237 MB / 0.7172 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000253/0.2007, allocations: 83.34 kB / 0.7173 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.947e-05/0.2008, allocations: 27.44 kB / 0.7173 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of SimCode: time 2.31e-07/0.2008, allocations: 0 / 0.7173 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of Templates: time 0.009749/0.2105, allocations: 4.487 MB / 0.7217 GB, free: 6.262 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)