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.0009511/0.000951, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.001203/0.001203, allocations: 172.7 kB / 15.95 MB, free: 192 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 223.3 MB / 240 MB, free: 5.211 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00176/0.001761, allocations: 263.2 kB / 291.3 MB, free: 1.773 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9564/0.9564, allocations: 169.5 MB / 0.5 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004427/0.0004427, allocations: 13.22 kB / 0.598 GB, free: 28.19 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1685/0.1689, allocations: 88.55 MB / 0.6845 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.003618/0.1726, allocations: 3.242 MB / 0.6877 GB, free: 12.2 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002201/0.1748, allocations: 1.674 MB / 0.6893 GB, free: 10.52 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001509/0.175, allocations: 15.88 kB / 0.6893 GB, free: 10.51 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001773/0.1751, allocations: 59.5 kB / 0.6894 GB, free: 10.45 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004759/0.1756, allocations: 225.3 kB / 0.6896 GB, free: 10.23 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004095/0.1761, allocations: 194.2 kB / 0.6898 GB, free: 10.04 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005554/0.1766, allocations: 0.6322 MB / 0.6904 GB, free: 9.41 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005228/0.1771, allocations: 338.4 kB / 0.6907 GB, free: 9.07 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002455/0.1774, allocations: 196.6 kB / 0.6909 GB, free: 8.879 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002533/0.1777, allocations: 215.7 kB / 0.6911 GB, free: 8.668 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.393e-05/0.1777, allocations: 16 kB / 0.6911 GB, free: 8.652 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002319/0.1779, allocations: 139.8 kB / 0.6912 GB, free: 8.516 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001119/0.1781, allocations: 99.64 kB / 0.6913 GB, free: 8.418 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.538e-05/0.1781, allocations: 97.45 kB / 0.6914 GB, free: 8.316 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003924/0.1785, allocations: 434.9 kB / 0.6919 GB, free: 7.891 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1786, allocations: 0 / 0.6919 GB, free: 7.891 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1786, allocations: 0 / 0.6919 GB, free: 7.891 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.1786, allocations: 0 / 0.6919 GB, free: 7.891 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.0009165/0.1795, allocations: 0.6738 MB / 0.6925 GB, free: 7.168 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.903e-05/0.1795, allocations: 11.97 kB / 0.6925 GB, free: 7.156 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008058/0.1803, allocations: 135.3 kB / 0.6926 GB, free: 7.023 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004196/0.1808, allocations: 362.6 kB / 0.693 GB, free: 6.629 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.1808, allocations: 20.66 kB / 0.693 GB, free: 6.609 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5e-05/0.1809, allocations: 31.89 kB / 0.693 GB, free: 6.578 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007345/0.1816, allocations: 0.5515 MB / 0.6936 GB, free: 5.953 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.1816, allocations: 7.938 kB / 0.6936 GB, free: 5.945 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.864e-05/0.1817, allocations: 23.97 kB / 0.6936 GB, free: 5.922 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-05/0.1817, allocations: 40.48 kB / 0.6937 GB, free: 5.883 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006546/0.1824, allocations: 417.7 kB / 0.6941 GB, free: 5.477 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002452/0.1849, allocations: 3.334 MB / 0.6973 GB, free: 1.891 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006094/0.1855, allocations: 343.2 kB / 0.6976 GB, free: 1.547 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002996/0.1858, allocations: 188.8 kB / 0.6978 GB, free: 1.359 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.1858, allocations: 0 / 0.6978 GB, free: 1.359 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.1859, allocations: 38.56 kB / 0.6979 GB, free: 1.312 MB / 494.1 MB Notification: Performance of pre-optimization done (n=26): time 3.647e-06/0.1859, allocations: 0 / 0.6979 GB, free: 1.312 MB / 494.1 MB Notification: Performance of matching and sorting (n=27): time 0.001908/0.1878, allocations: 1.091 MB / 0.6989 GB, free: 156 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/0.1878, allocations: 51.64 kB / 0.699 GB, free: 92 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000328/0.1882, allocations: 337.6 kB / 0.6993 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.1882, allocations: 29.7 kB / 0.6993 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.1884, allocations: 243.5 kB / 0.6995 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.543e-05/0.1884, allocations: 102.6 kB / 0.6996 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.837e-05/0.1885, allocations: 11.94 kB / 0.6997 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.1886, allocations: 346.8 kB / 0.7 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002635/0.1889, allocations: 152.8 kB / 0.7001 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003361/0.1892, allocations: 300 kB / 0.7004 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003117/0.1895, allocations: 194.2 kB / 0.7006 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1895, allocations: 0 / 0.7006 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009349/0.1905, allocations: 0.5692 MB / 0.7012 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.1905, allocations: 9.406 kB / 0.7012 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.1905, allocations: 4 kB / 0.7012 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002727/0.1908, allocations: 94.91 kB / 0.7013 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000311/0.1911, allocations: 87.88 kB / 0.7013 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.431e-05/0.1911, allocations: 11.94 kB / 0.7014 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002295/0.1914, allocations: 31.97 kB / 0.7014 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.92e-05/0.1914, allocations: 20 kB / 0.7014 GB, free: 13.48 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 (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001651/0.1916, allocations: 173.7 kB / 0.7016 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.147e-05/0.1917, allocations: 43.52 kB / 0.7016 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008266/0.1925, allocations: 472 kB / 0.7021 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.1925, allocations: 4 kB / 0.7021 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.1925, allocations: 11.89 kB / 0.7021 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1925, allocations: 0 / 0.7021 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001276/0.1938, allocations: 0.9638 MB / 0.703 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.1938, allocations: 0 / 0.703 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000221/0.1941, allocations: 55.95 kB / 0.7031 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000208/0.1943, allocations: 78.45 kB / 0.7032 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/0.1943, allocations: 8 kB / 0.7032 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.1943, allocations: 4.094 kB / 0.7032 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.1943, allocations: 4 kB / 0.7032 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007553/0.1951, allocations: 0.5555 MB / 0.7037 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001283/0.1952, allocations: 136.6 kB / 0.7038 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.014e-05/0.1953, allocations: 11.94 kB / 0.7039 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002064/0.1955, allocations: 27.91 kB / 0.7039 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.708e-05/0.1955, allocations: 27.91 kB / 0.7039 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.1956, allocations: 12 kB / 0.7039 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001948/0.1958, allocations: 227.2 kB / 0.7041 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.1958, allocations: 0 / 0.7041 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003893/0.1962, allocations: 88 kB / 0.7042 GB, free: 10.44 MB / 0.4981 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 (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001125/0.1963, allocations: 104.6 kB / 0.7043 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0007928/0.1971, allocations: 0.6423 MB / 0.7049 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1971, allocations: 4.125 kB / 0.7049 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004183/0.1975, allocations: 448.9 kB / 0.7054 GB, free: 9.121 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006223/0.1982, allocations: 117.6 kB / 0.7055 GB, free: 9.008 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/0.1992, allocations: 0.8578 MB / 0.7063 GB, free: 8.113 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.1996, allocations: 0.8315 MB / 0.7071 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002277/0.1998, allocations: 75.36 kB / 0.7072 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.987e-05/0.1999, allocations: 27.44 kB / 0.7072 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1999, allocations: 0 / 0.7072 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of Templates: time 0.007788/0.2077, allocations: 4.312 MB / 0.7114 GB, free: 2.898 MB / 0.4981 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)