Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.385/1.385, allocations: 252 MB / 268 MB, free: 10.84 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009718/0.0009718, allocations: 186.5 kB / 327.6 MB, free: 2.07 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.453/1.453, allocations: 205.4 MB / 0.5786 GB, free: 20.43 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008676/0.0008675, allocations: 91 kB / 0.6832 GB, free: 13.19 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003192/0.0003192, allocations: 11.81 kB / 0.7976 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1816, allocations: 106.3 MB / 0.9015 GB, free: 63.78 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.002935/0.1846, allocations: 2.719 MB / 0.9041 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002245/0.1869, allocations: 1.769 MB / 0.9058 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001801/0.1871, allocations: 4 kB / 0.9058 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001856/0.1873, allocations: 35.7 kB / 0.9059 GB, free: 59.22 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0004952/0.1878, allocations: 179.2 kB / 0.9061 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005921/0.1884, allocations: 235.5 kB / 0.9063 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0004373/0.1888, allocations: 498.6 kB / 0.9068 GB, free: 58.33 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006585/0.1895, allocations: 410.5 kB / 0.9071 GB, free: 57.91 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002179/0.1897, allocations: 135.5 kB / 0.9073 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002867/0.19, allocations: 167.4 kB / 0.9074 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.69e-05/0.1901, allocations: 12 kB / 0.9074 GB, free: 57.6 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004132/0.1905, allocations: 303.4 kB / 0.9077 GB, free: 57.3 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.844e-05/0.1906, allocations: 91.72 kB / 0.9078 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.1907, allocations: 160.9 kB / 0.908 GB, free: 57.05 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0003597/0.1911, allocations: 351.4 kB / 0.9083 GB, free: 56.71 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1911, allocations: 0 / 0.9083 GB, free: 56.71 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.392e-06/0.1911, allocations: 0 / 0.9083 GB, free: 56.71 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.813e-06/0.1911, allocations: 0 / 0.9083 GB, free: 56.71 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0009687/0.1921, allocations: 0.602 MB / 0.9089 GB, free: 56.05 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.1922, allocations: 15.97 kB / 0.9089 GB, free: 56.03 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006813/0.1928, allocations: 92.47 kB / 0.909 GB, free: 55.94 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003146/0.1932, allocations: 279.5 kB / 0.9093 GB, free: 55.63 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.1932, allocations: 20.73 kB / 0.9093 GB, free: 55.61 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.974e-05/0.1933, allocations: 28.34 kB / 0.9093 GB, free: 55.58 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006505/0.1939, allocations: 426.9 kB / 0.9097 GB, free: 55.13 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.1939, allocations: 3.984 kB / 0.9097 GB, free: 55.13 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.936e-05/0.194, allocations: 15.92 kB / 0.9097 GB, free: 55.11 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.684e-05/0.194, allocations: 28.36 kB / 0.9098 GB, free: 55.08 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000758/0.1948, allocations: 408.8 kB / 0.9102 GB, free: 54.68 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.1962, allocations: 1.611 MB / 0.9117 GB, free: 52.95 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.1972, allocations: 491 kB / 0.9122 GB, free: 52.45 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003655/0.1976, allocations: 209.6 kB / 0.9124 GB, free: 52.24 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001196/0.1977, allocations: 89.05 kB / 0.9125 GB, free: 52.13 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004684/0.1982, allocations: 286.5 kB / 0.9128 GB, free: 51.84 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=27): time 2.465e-06/0.1982, allocations: 0 / 0.9128 GB, free: 51.84 MB / 0.6042 GB Notification: Performance of matching and sorting (n=28): time 0.001629/0.1998, allocations: 0.778 MB / 0.9135 GB, free: 51.03 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.144e-05/0.1999, allocations: 89.11 kB / 0.9136 GB, free: 50.93 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.2001, allocations: 225 kB / 0.9138 GB, free: 50.7 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.607e-05/0.2001, allocations: 33.7 kB / 0.9139 GB, free: 50.66 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.617e-05/0.2002, allocations: 164.3 kB / 0.914 GB, free: 50.5 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.302e-05/0.2002, allocations: 90.73 kB / 0.9141 GB, free: 50.41 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.032e-05/0.2002, allocations: 4 kB / 0.9141 GB, free: 50.4 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.996e-05/0.2003, allocations: 338.8 kB / 0.9144 GB, free: 50.06 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003642/0.2007, allocations: 180.2 kB / 0.9146 GB, free: 49.89 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003982/0.2011, allocations: 257.3 kB / 0.9148 GB, free: 49.61 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007425/0.2018, allocations: 494.8 kB / 0.9153 GB, free: 49.09 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2018, allocations: 0 / 0.9153 GB, free: 49.09 MB / 0.6042 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009948/0.2028, allocations: 0.5598 MB / 0.9159 GB, free: 48.51 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.672e-05/0.2029, allocations: 193.3 kB / 0.916 GB, free: 48.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.203, allocations: 0 / 0.916 GB, free: 48.29 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000222/0.2032, allocations: 40.86 kB / 0.9161 GB, free: 48.24 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003804/0.2036, allocations: 95.86 kB / 0.9162 GB, free: 48.15 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009655/0.2045, allocations: 1.505 MB / 0.9176 GB, free: 46.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003204/0.2049, allocations: 51.8 kB / 0.9177 GB, free: 46.45 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.029e-05/0.2049, allocations: 12 kB / 0.9177 GB, free: 46.44 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.612e-06/0.2049, allocations: 4 kB / 0.9177 GB, free: 46.44 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009633/0.2059, allocations: 0.4944 MB / 0.9182 GB, free: 45.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.2059, allocations: 4 kB / 0.9182 GB, free: 45.93 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001187/0.206, allocations: 40.81 kB / 0.9182 GB, free: 45.89 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003357/0.2064, allocations: 95.91 kB / 0.9183 GB, free: 45.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008212/0.2072, allocations: 1.485 MB / 0.9198 GB, free: 44.17 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002851/0.2075, allocations: 51.88 kB / 0.9198 GB, free: 44.12 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.799e-05/0.2076, allocations: 19.98 kB / 0.9198 GB, free: 44.1 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001636/0.2077, allocations: 229.7 kB / 0.9201 GB, free: 43.87 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.823e-05/0.2078, allocations: 31.59 kB / 0.9201 GB, free: 43.84 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009165/0.2087, allocations: 494.6 kB / 0.9206 GB, free: 43.34 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.2087, allocations: 7.984 kB / 0.9206 GB, free: 43.34 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2087, allocations: 4 kB / 0.9206 GB, free: 43.33 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.2087, allocations: 0 / 0.9206 GB, free: 43.33 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005214/0.2093, allocations: 0.5661 MB / 0.9211 GB, free: 42.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.2093, allocations: 4 kB / 0.9211 GB, free: 42.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003596/0.2096, allocations: 79.86 kB / 0.9212 GB, free: 42.62 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001116/0.2098, allocations: 44.91 kB / 0.9212 GB, free: 42.57 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/0.2098, allocations: 4 kB / 0.9213 GB, free: 42.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000741/0.2106, allocations: 1.417 MB / 0.9226 GB, free: 41.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.2106, allocations: 0 / 0.9226 GB, free: 41.02 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008538/0.2114, allocations: 0.5731 MB / 0.9232 GB, free: 40.41 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.2115, allocations: 136.7 kB / 0.9233 GB, free: 40.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.842e-05/0.2116, allocations: 4 kB / 0.9233 GB, free: 40.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002984/0.2119, allocations: 43.95 kB / 0.9234 GB, free: 40.21 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.889e-05/0.212, allocations: 27.95 kB / 0.9234 GB, free: 40.19 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.172e-05/0.212, allocations: 15.94 kB / 0.9234 GB, free: 40.17 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001178/0.2122, allocations: 172.5 kB / 0.9236 GB, free: 40 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.11e-07/0.2122, allocations: 0 / 0.9236 GB, free: 40 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0005077/0.2127, allocations: 131.9 kB / 0.9237 GB, free: 39.88 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001631/0.2128, allocations: 119.2 kB / 0.9238 GB, free: 39.75 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001851/0.2147, allocations: 1.005 MB / 0.9248 GB, free: 38.69 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.2147, allocations: 0 / 0.9248 GB, free: 38.69 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0005176/0.2153, allocations: 347.2 kB / 0.9251 GB, free: 38.34 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004186/0.2157, allocations: 50.58 kB / 0.9252 GB, free: 38.29 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001002/0.2167, allocations: 0.7815 MB / 0.9259 GB, free: 37.48 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000197/0.2169, allocations: 0.7761 MB / 0.9267 GB, free: 36.68 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.217, allocations: 31.42 kB / 0.9267 GB, free: 36.64 MB / 0.6042 GB Notification: Performance of SimCode: time 6.31e-07/0.2171, allocations: 0 / 0.9267 GB, free: 36.64 MB / 0.6042 GB Notification: Performance of Templates: time 0.006126/0.2232, allocations: 5.093 MB / 0.9317 GB, free: 31.55 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)