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.0008034/0.0008034, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.004794/0.004794, allocations: 171.4 kB / 16.26 MB, free: 6.613 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.33/1.33, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001762/0.001762, allocations: 266.5 kB / 291.7 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9439/0.9439, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004081/0.0004081, allocations: 14.3 kB / 0.5987 GB, free: 28.19 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1596/0.16, allocations: 88.54 MB / 0.6851 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.00361/0.1637, allocations: 3.384 MB / 0.6884 GB, free: 11.66 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002933/0.1666, allocations: 1.784 MB / 0.6902 GB, free: 9.871 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001617/0.1668, allocations: 16.62 kB / 0.6902 GB, free: 9.855 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002356/0.167, allocations: 51.5 kB / 0.6902 GB, free: 9.805 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000682/0.1677, allocations: 272.4 kB / 0.6905 GB, free: 9.543 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005469/0.1683, allocations: 235.5 kB / 0.6907 GB, free: 9.312 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007717/0.1691, allocations: 0.7458 MB / 0.6915 GB, free: 8.566 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000717/0.1698, allocations: 373.4 kB / 0.6918 GB, free: 8.188 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002977/0.1701, allocations: 191.1 kB / 0.692 GB, free: 8 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002847/0.1704, allocations: 227 kB / 0.6922 GB, free: 7.777 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.231e-05/0.1704, allocations: 12 kB / 0.6922 GB, free: 7.766 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005201/0.171, allocations: 339.3 kB / 0.6925 GB, free: 7.434 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001498/0.1711, allocations: 111.6 kB / 0.6927 GB, free: 7.324 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002259/0.1714, allocations: 216.6 kB / 0.6929 GB, free: 7.105 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006299/0.172, allocations: 0.5838 MB / 0.6934 GB, free: 6.52 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.172, allocations: 0 / 0.6934 GB, free: 6.52 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.172, allocations: 0 / 0.6934 GB, free: 6.52 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.493e-06/0.172, allocations: 0 / 0.6934 GB, free: 6.52 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.0009982/0.173, allocations: 0.6715 MB / 0.6941 GB, free: 5.801 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.1731, allocations: 8.031 kB / 0.6941 GB, free: 5.793 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000888/0.174, allocations: 136.2 kB / 0.6942 GB, free: 5.66 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004242/0.1744, allocations: 375.6 kB / 0.6946 GB, free: 5.254 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.1744, allocations: 25.02 kB / 0.6946 GB, free: 5.23 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.544e-05/0.1745, allocations: 28.38 kB / 0.6946 GB, free: 5.203 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007656/0.1753, allocations: 0.555 MB / 0.6952 GB, free: 4.578 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.1753, allocations: 3.938 kB / 0.6952 GB, free: 4.574 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.027e-05/0.1753, allocations: 23.98 kB / 0.6952 GB, free: 4.551 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.858e-05/0.1754, allocations: 40.53 kB / 0.6952 GB, free: 4.512 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007599/0.1762, allocations: 417.7 kB / 0.6956 GB, free: 4.105 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003031/0.1792, allocations: 3.337 MB / 0.6989 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006268/0.1799, allocations: 347.7 kB / 0.6992 GB, free: 172 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003116/0.1802, allocations: 188.7 kB / 0.6994 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.213e-05/0.1802, allocations: 4 kB / 0.6994 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.1802, allocations: 30.56 kB / 0.6994 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=26): time 2.685e-06/0.1803, allocations: 0 / 0.6994 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=27): time 0.002052/0.1823, allocations: 1.094 MB / 0.7005 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/0.1824, allocations: 55.64 kB / 0.7006 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003249/0.1827, allocations: 333.6 kB / 0.7009 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.677e-05/0.1827, allocations: 29.7 kB / 0.7009 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001798/0.1829, allocations: 251.5 kB / 0.7012 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.993e-05/0.183, allocations: 90.75 kB / 0.7012 GB, free: 14 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.771e-05/0.1831, allocations: 37.7 kB / 0.7013 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001525/0.1832, allocations: 346.8 kB / 0.7016 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002824/0.1835, allocations: 160.8 kB / 0.7018 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003624/0.1839, allocations: 290.5 kB / 0.702 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006799/0.1846, allocations: 499.2 kB / 0.7025 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1846, allocations: 4 kB / 0.7025 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009801/0.1856, allocations: 0.5694 MB / 0.7031 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.1856, allocations: 8 kB / 0.7031 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.036e-06/0.1856, allocations: 4 kB / 0.7031 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003096/0.1859, allocations: 87.08 kB / 0.7032 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003341/0.1863, allocations: 91.81 kB / 0.7033 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.619e-05/0.1863, allocations: 11.98 kB / 0.7033 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002726/0.1866, allocations: 35.86 kB / 0.7033 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.83e-05/0.1866, allocations: 19.98 kB / 0.7033 GB, free: 11.7 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.0001769/0.1868, allocations: 174.4 kB / 0.7035 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.328e-05/0.1869, allocations: 39.53 kB / 0.7035 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008855/0.1878, allocations: 472 kB / 0.704 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.1878, allocations: 4 kB / 0.704 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.1878, allocations: 3.984 kB / 0.704 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.1878, allocations: 4 kB / 0.704 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001424/0.1892, allocations: 0.9792 MB / 0.7049 GB, free: 9.941 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.1892, allocations: 0 / 0.7049 GB, free: 9.941 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002313/0.1895, allocations: 47.97 kB / 0.705 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002387/0.1897, allocations: 94.53 kB / 0.7051 GB, free: 9.793 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.1898, allocations: 11.94 kB / 0.7051 GB, free: 9.781 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.1898, allocations: 0 / 0.7051 GB, free: 9.781 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.1898, allocations: 8 kB / 0.7051 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000848/0.1906, allocations: 0.5502 MB / 0.7056 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001403/0.1908, allocations: 140.6 kB / 0.7058 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.267e-05/0.1908, allocations: 0 / 0.7058 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002357/0.1911, allocations: 35.91 kB / 0.7058 GB, free: 9 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.23e-05/0.1912, allocations: 27.84 kB / 0.7058 GB, free: 8.973 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/0.1912, allocations: 15.92 kB / 0.7058 GB, free: 8.957 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002549/0.1914, allocations: 235.2 kB / 0.7061 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1915, allocations: 4 kB / 0.7061 GB, free: 8.727 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003975/0.1919, allocations: 84 kB / 0.7061 GB, free: 8.645 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 (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.0001313/0.192, allocations: 109.3 kB / 0.7063 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008698/0.1929, allocations: 0.6426 MB / 0.7069 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1929, allocations: 0 / 0.7069 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005544/0.1934, allocations: 441.7 kB / 0.7073 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007566/0.1942, allocations: 120.4 kB / 0.7074 GB, free: 7.215 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/0.1953, allocations: 0.8873 MB / 0.7083 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004518/0.1958, allocations: 0.8237 MB / 0.7091 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002327/0.196, allocations: 83.34 kB / 0.7092 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.264e-05/0.1961, allocations: 27.44 kB / 0.7092 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of SimCode: time 2.1e-07/0.1961, allocations: 0 / 0.7092 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of Templates: time 0.008249/0.2043, allocations: 4.452 MB / 0.7135 GB, free: 0.9375 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)