Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_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_8_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.001418/0.001418, allocations: 112.2 kB / 16.37 MB, free: 6 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.001116/0.001116, allocations: 191.9 kB / 17.31 MB, free: 5.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.34/1.34, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.82/1.82, allocations: 292.3 MB / 0.5496 GB, free: 17.51 MB / 462.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.001501/0.001501, allocations: 71.89 kB / 0.6729 GB, free: 5.875 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.2313, allocations: 114.6 MB / 0.7848 GB, free: 3.207 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.004465/0.2358, allocations: 3.037 MB / 0.7878 GB, free: 156 kB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.3268/0.5626, allocations: 1.774 MB / 0.7895 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001947/0.5628, allocations: 4.562 kB / 0.7895 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0007626/0.5636, allocations: 234.8 kB / 0.7897 GB, free: 46.69 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0004792/0.5641, allocations: 192.7 kB / 0.7899 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006154/0.5648, allocations: 256 kB / 0.7902 GB, free: 46.67 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0004181/0.5652, allocations: 395.3 kB / 0.7905 GB, free: 46.66 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003352/0.5655, allocations: 210.8 kB / 0.7907 GB, free: 46.66 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002574/0.5658, allocations: 158.9 kB / 0.7909 GB, free: 46.64 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002719/0.5661, allocations: 180.9 kB / 0.7911 GB, free: 46.61 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.696e-05/0.5661, allocations: 23.62 kB / 0.7911 GB, free: 46.61 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003796/0.5665, allocations: 256.9 kB / 0.7913 GB, free: 46.61 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 8.682e-05/0.5666, allocations: 101.5 kB / 0.7914 GB, free: 46.6 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.000127/0.5667, allocations: 144.3 kB / 0.7916 GB, free: 46.56 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004513/0.5672, allocations: 477.3 kB / 0.792 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.5672, allocations: 0 / 0.792 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.484e-06/0.5672, allocations: 0 / 0.792 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.552e-05/0.5672, allocations: 0 / 0.792 GB, free: 46.5 MB / 0.6544 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.00131/0.5686, allocations: 0.6328 MB / 0.7926 GB, free: 46.02 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.5686, allocations: 10.59 kB / 0.7926 GB, free: 46.02 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007685/0.5694, allocations: 97.08 kB / 0.7927 GB, free: 46 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003705/0.5698, allocations: 286.3 kB / 0.793 GB, free: 45.78 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.5698, allocations: 15.48 kB / 0.793 GB, free: 45.78 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.619e-05/0.5699, allocations: 21.91 kB / 0.793 GB, free: 45.78 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007544/0.5706, allocations: 418.3 kB / 0.7934 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.5707, allocations: 4.625 kB / 0.7934 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.44e-05/0.5707, allocations: 5.656 kB / 0.7935 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.564e-05/0.5708, allocations: 27.27 kB / 0.7935 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008363/0.5716, allocations: 390.3 kB / 0.7938 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.5733, allocations: 1.605 MB / 0.7954 GB, free: 44.61 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.5743, allocations: 462.9 kB / 0.7959 GB, free: 44.56 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003648/0.5747, allocations: 191.5 kB / 0.796 GB, free: 44.54 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001291/0.5749, allocations: 93.83 kB / 0.7961 GB, free: 44.45 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004863/0.5753, allocations: 264.1 kB / 0.7964 GB, free: 44.39 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=27): time 1.854e-06/0.5754, allocations: 0 / 0.7964 GB, free: 44.39 MB / 0.6544 GB Notification: Performance of matching and sorting (n=28): time 0.001715/0.5771, allocations: 0.738 MB / 0.7971 GB, free: 44.19 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.5771, allocations: 92.23 kB / 0.7972 GB, free: 44.09 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001717/0.5773, allocations: 228.5 kB / 0.7974 GB, free: 43.98 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.5773, allocations: 33.08 kB / 0.7974 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 7.016e-05/0.5774, allocations: 162.8 kB / 0.7976 GB, free: 43.83 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 5.945e-05/0.5775, allocations: 97.05 kB / 0.7977 GB, free: 43.77 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.5776, allocations: 72.81 kB / 0.7978 GB, free: 43.75 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.387e-05/0.5777, allocations: 337.1 kB / 0.7981 GB, free: 43.44 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003852/0.5781, allocations: 167.9 kB / 0.7982 GB, free: 43.43 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003858/0.5785, allocations: 247.6 kB / 0.7985 GB, free: 43.34 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008452/0.5793, allocations: 458.8 kB / 0.7989 GB, free: 43.22 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.5793, allocations: 0 / 0.7989 GB, free: 43.22 MB / 0.6544 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001036/0.5804, allocations: 0.5297 MB / 0.7994 GB, free: 43.12 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.938e-05/0.5804, allocations: 39.22 kB / 0.7995 GB, free: 43.09 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.5804, allocations: 4.719 kB / 0.7995 GB, free: 43.09 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002234/0.5806, allocations: 39.09 kB / 0.7995 GB, free: 43.08 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003857/0.581, allocations: 84.75 kB / 0.7996 GB, free: 43.07 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001195/0.5822, allocations: 1.61 MB / 0.8012 GB, free: 41.58 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003302/0.5826, allocations: 49.98 kB / 0.8012 GB, free: 41.56 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.747e-05/0.5826, allocations: 17.06 kB / 0.8012 GB, free: 41.56 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004568/0.5831, allocations: 273.4 kB / 0.8015 GB, free: 41.42 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004048/0.5835, allocations: 237.3 kB / 0.8017 GB, free: 41.28 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007871/0.5843, allocations: 440.5 kB / 0.8021 GB, free: 41.04 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.415e-06/0.5843, allocations: 0.6875 kB / 0.8021 GB, free: 41.04 MB / 0.6544 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001086/0.5854, allocations: 0.5107 MB / 0.8026 GB, free: 40.84 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.5855, allocations: 35.52 kB / 0.8027 GB, free: 40.81 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.115e-06/0.5855, allocations: 0 / 0.8027 GB, free: 40.81 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000143/0.5856, allocations: 44.08 kB / 0.8027 GB, free: 40.79 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003761/0.586, allocations: 78.33 kB / 0.8028 GB, free: 40.79 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00108/0.5871, allocations: 1.605 MB / 0.8044 GB, free: 39.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003101/0.5874, allocations: 46.03 kB / 0.8044 GB, free: 39.28 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.663e-05/0.5875, allocations: 19.38 kB / 0.8044 GB, free: 39.27 MB / 0.6544 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 (load.count,$PRE.load.count,load.T_start,$PRE.load.T_start,$whenCondition1) * 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.0001394/0.5876, allocations: 199.3 kB / 0.8046 GB, free: 39.09 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.276e-05/0.5877, allocations: 24.08 kB / 0.8046 GB, free: 39.07 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001204/0.5889, allocations: 480.5 kB / 0.8051 GB, free: 38.89 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.814e-06/0.5889, allocations: 3.344 kB / 0.8051 GB, free: 38.89 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.5889, allocations: 1.969 kB / 0.8051 GB, free: 38.89 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.5889, allocations: 5.906 kB / 0.8051 GB, free: 38.89 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006855/0.5896, allocations: 0.5716 MB / 0.8057 GB, free: 38.47 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.5896, allocations: 1.125 kB / 0.8057 GB, free: 38.47 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004014/0.59, allocations: 76.17 kB / 0.8057 GB, free: 38.47 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001256/0.5902, allocations: 34.8 kB / 0.8058 GB, free: 38.46 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.925e-05/0.5902, allocations: 8.047 kB / 0.8058 GB, free: 38.45 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008913/0.5911, allocations: 1.519 MB / 0.8073 GB, free: 37 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.5911, allocations: 4.125 kB / 0.8073 GB, free: 37 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.5922, allocations: 0.538 MB / 0.8078 GB, free: 36.71 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001255/0.5923, allocations: 136.1 kB / 0.8079 GB, free: 36.59 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.902e-05/0.5923, allocations: 12.17 kB / 0.8079 GB, free: 36.58 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000326/0.5927, allocations: 33.48 kB / 0.808 GB, free: 36.58 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.5928, allocations: 31.95 kB / 0.808 GB, free: 36.57 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.67e-05/0.5928, allocations: 7.266 kB / 0.808 GB, free: 36.57 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001749/0.593, allocations: 175.4 kB / 0.8082 GB, free: 36.46 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.4e-07/0.593, allocations: 0 / 0.8082 GB, free: 36.46 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0006458/0.5937, allocations: 124.2 kB / 0.8083 GB, free: 36.45 MB / 0.6544 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.0001548/0.5938, allocations: 120 kB / 0.8084 GB, free: 36.36 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001964/0.5958, allocations: 0.9807 MB / 0.8094 GB, free: 35.82 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.5958, allocations: 3.438 kB / 0.8094 GB, free: 35.82 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0006181/0.5965, allocations: 322.8 kB / 0.8097 GB, free: 35.66 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004606/0.5969, allocations: 54.08 kB / 0.8097 GB, free: 35.64 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/0.5983, allocations: 0.6504 MB / 0.8103 GB, free: 35.26 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002814/0.5986, allocations: 0.7877 MB / 0.8111 GB, free: 34.55 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001289/0.5987, allocations: 27.27 kB / 0.8111 GB, free: 34.54 MB / 0.6544 GB Notification: Performance of SimCode: time 4.21e-07/0.5987, allocations: 2.812 kB / 0.8111 GB, free: 34.54 MB / 0.6544 GB Notification: Performance of Templates: time 0.01035/0.6091, allocations: 5.116 MB / 0.8161 GB, free: 34.23 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)