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/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 100 kB / 15.05 MB, free: 1.105 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.0009764/0.0009768, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.867/1.867, allocations: 205.4 MB / 222.1 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.543/1.543, allocations: 251.9 MB / 0.51 GB, free: 4.863 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005144/0.0005148, allocations: 12 kB / 0.6241 GB, free: 1.188 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6316/0.6322, allocations: 106.3 MB / 0.728 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.003892/0.6361, allocations: 2.567 MB / 0.7305 GB, free: 8.867 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002847/0.639, allocations: 1.63 MB / 0.7321 GB, free: 7.227 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001555/0.6392, allocations: 4 kB / 0.7321 GB, free: 7.223 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0002224/0.6394, allocations: 39.75 kB / 0.7321 GB, free: 7.184 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0004691/0.6399, allocations: 131.5 kB / 0.7322 GB, free: 7.055 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006132/0.6405, allocations: 187.5 kB / 0.7324 GB, free: 6.871 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003842/0.6409, allocations: 227.4 kB / 0.7326 GB, free: 6.648 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008516/0.6418, allocations: 378.5 kB / 0.733 GB, free: 6.258 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002375/0.642, allocations: 107.7 kB / 0.7331 GB, free: 6.152 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002809/0.6423, allocations: 135.5 kB / 0.7332 GB, free: 6.02 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.432e-05/0.6424, allocations: 12 kB / 0.7332 GB, free: 6.008 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002944/0.6427, allocations: 139.8 kB / 0.7334 GB, free: 5.871 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.6428, allocations: 71.8 kB / 0.7334 GB, free: 5.801 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 9.464e-05/0.6429, allocations: 73.52 kB / 0.7335 GB, free: 5.723 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004254/0.6433, allocations: 345.1 kB / 0.7338 GB, free: 5.387 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.6433, allocations: 0 / 0.7338 GB, free: 5.387 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.482e-05/0.6433, allocations: 4 kB / 0.7338 GB, free: 5.383 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.136e-05/0.6434, allocations: 4 kB / 0.7339 GB, free: 5.379 MB / 0.545 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.001394/0.6448, allocations: 0.5978 MB / 0.7344 GB, free: 4.723 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.6448, allocations: 16.03 kB / 0.7345 GB, free: 4.707 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007912/0.6456, allocations: 111.5 kB / 0.7346 GB, free: 4.598 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004384/0.6461, allocations: 274.5 kB / 0.7348 GB, free: 4.289 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.884e-05/0.6461, allocations: 16.38 kB / 0.7348 GB, free: 4.273 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.798e-05/0.6462, allocations: 19.98 kB / 0.7349 GB, free: 4.254 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008237/0.647, allocations: 418.6 kB / 0.7353 GB, free: 3.82 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.298e-05/0.647, allocations: 7.938 kB / 0.7353 GB, free: 3.812 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.75e-05/0.6471, allocations: 7.984 kB / 0.7353 GB, free: 3.805 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-05/0.6471, allocations: 32.36 kB / 0.7353 GB, free: 3.77 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008953/0.648, allocations: 412.7 kB / 0.7357 GB, free: 3.367 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002032/0.6501, allocations: 1.607 MB / 0.7373 GB, free: 1.633 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001208/0.6513, allocations: 494.8 kB / 0.7377 GB, free: 1.137 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001753/0.6515, allocations: 93.03 kB / 0.7378 GB, free: 1.027 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005547/0.6521, allocations: 272 kB / 0.7381 GB, free: 0.7461 MB / 0.545 GB Notification: Performance of pre-optimization done (n=27): time 1.523e-06/0.6521, allocations: 3.938 kB / 0.7381 GB, free: 0.7422 MB / 0.545 GB Notification: Performance of matching and sorting (n=28): time 0.001906/0.654, allocations: 0.7798 MB / 0.7388 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.6541, allocations: 81.11 kB / 0.7389 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002195/0.6543, allocations: 233 kB / 0.7391 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.613e-05/0.6543, allocations: 29.7 kB / 0.7392 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001436/0.6545, allocations: 164.4 kB / 0.7393 GB, free: 15.4 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.552e-05/0.6546, allocations: 98.64 kB / 0.7394 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.921e-05/0.6546, allocations: 4 kB / 0.7394 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.6547, allocations: 338.8 kB / 0.7398 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003937/0.6551, allocations: 180.2 kB / 0.7399 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00045/0.6556, allocations: 253.3 kB / 0.7402 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004454/0.656, allocations: 239.3 kB / 0.7404 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.6561, allocations: 4 kB / 0.7404 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001091/0.6572, allocations: 0.552 MB / 0.7409 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000416/0.6576, allocations: 0.9099 MB / 0.7418 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.6576, allocations: 4 kB / 0.7418 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002451/0.6579, allocations: 44.77 kB / 0.7419 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000381/0.6583, allocations: 91.86 kB / 0.742 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/0.6597, allocations: 1.509 MB / 0.7434 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000315/0.66, allocations: 51.86 kB / 0.7435 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.997e-05/0.6601, allocations: 27.92 kB / 0.7435 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.307e-06/0.6601, allocations: 6.031 kB / 0.7435 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001032/0.6611, allocations: 498.3 kB / 0.744 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.6612, allocations: 8.281 kB / 0.744 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001224/0.6613, allocations: 40.83 kB / 0.744 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000339/0.6616, allocations: 87.86 kB / 0.7441 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00122/0.6629, allocations: 1.497 MB / 0.7456 GB, free: 8.574 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002866/0.6632, allocations: 51.81 kB / 0.7456 GB, free: 8.523 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.455e-05/0.6632, allocations: 16.05 kB / 0.7456 GB, free: 8.508 MB / 0.5606 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002603/0.6635, allocations: 239.8 kB / 0.7459 GB, free: 8.266 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.625e-05/0.6635, allocations: 27.72 kB / 0.7459 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001045/0.6646, allocations: 0.4889 MB / 0.7464 GB, free: 7.742 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.6646, allocations: 4 kB / 0.7464 GB, free: 7.738 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.6646, allocations: 3.984 kB / 0.7464 GB, free: 7.734 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.6646, allocations: 3.953 kB / 0.7464 GB, free: 7.73 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006867/0.6653, allocations: 0.5583 MB / 0.7469 GB, free: 7.109 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.6653, allocations: 8.094 kB / 0.7469 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003651/0.6657, allocations: 87.8 kB / 0.747 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001117/0.6658, allocations: 36.81 kB / 0.7471 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.648e-05/0.6659, allocations: 11.95 kB / 0.7471 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.667, allocations: 1.417 MB / 0.7485 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.667, allocations: 4.031 kB / 0.7485 GB, free: 5.402 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.6681, allocations: 0.5979 MB / 0.749 GB, free: 4.758 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001466/0.6682, allocations: 136.7 kB / 0.7492 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.314e-05/0.6683, allocations: 8 kB / 0.7492 GB, free: 4.598 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000296/0.6686, allocations: 43.94 kB / 0.7492 GB, free: 4.555 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.6687, allocations: 35.89 kB / 0.7493 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.56e-05/0.6688, allocations: 12 kB / 0.7493 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001673/0.6689, allocations: 172.5 kB / 0.7494 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.61e-07/0.6689, allocations: 0 / 0.7494 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0006051/0.6696, allocations: 128 kB / 0.7496 GB, free: 4.211 MB / 0.5606 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001967/0.6698, allocations: 115.1 kB / 0.7497 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001882/0.6716, allocations: 1.012 MB / 0.7507 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.6717, allocations: 0 / 0.7507 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0006066/0.6723, allocations: 338.8 kB / 0.751 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000333/0.6726, allocations: 40.41 kB / 0.751 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001209/0.6738, allocations: 0.7325 MB / 0.7517 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004035/0.6743, allocations: 0.7917 MB / 0.7525 GB, free: 1.066 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002778/0.6745, allocations: 94.2 kB / 0.7526 GB, free: 0.9727 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.38e-05/0.6746, allocations: 31.42 kB / 0.7526 GB, free: 0.9414 MB / 0.5606 GB Notification: Performance of SimCode: time 1.874e-06/0.6747, allocations: 0 / 0.7526 GB, free: 0.9414 MB / 0.5606 GB Notification: Performance of Templates: time 0.007911/0.6826, allocations: 4.028 MB / 0.7566 GB, free: 12.94 MB / 0.5762 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: