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.001163/0.001163, allocations: 106.8 kB / 15.99 MB, free: 5.891 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.001187/0.001187, allocations: 195.9 kB / 16.91 MB, free: 5.746 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.524/1.524, allocations: 205.1 MB / 222.8 MB, free: 4.656 MB / 174.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.637/1.637, allocations: 292.3 MB / 0.5492 GB, free: 13.61 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.001863/0.001863, allocations: 68.34 kB / 0.6717 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2343, allocations: 114.5 MB / 0.7835 GB, free: 13.9 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.004592/0.239, allocations: 3.08 MB / 0.7865 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002536/0.2415, allocations: 1.762 MB / 0.7882 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.2417, allocations: 7.938 kB / 0.7883 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0007724/0.2425, allocations: 219.2 kB / 0.7885 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004184/0.2429, allocations: 183.2 kB / 0.7886 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005887/0.2435, allocations: 231.5 kB / 0.7889 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004156/0.2439, allocations: 386.7 kB / 0.7892 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004109/0.2443, allocations: 242.1 kB / 0.7895 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002183/0.2446, allocations: 151.5 kB / 0.7896 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002954/0.2449, allocations: 191.3 kB / 0.7898 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.045e-05/0.2449, allocations: 24 kB / 0.7898 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003976/0.2453, allocations: 263.4 kB / 0.7901 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.2455, allocations: 107.6 kB / 0.7902 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.2456, allocations: 139.3 kB / 0.7903 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000395/0.246, allocations: 363.1 kB / 0.7906 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.246, allocations: 3.984 kB / 0.7906 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.373e-06/0.246, allocations: 0 / 0.7906 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.572e-06/0.246, allocations: 0 / 0.7906 GB, free: 6.562 MB / 0.6075 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.001219/0.2473, allocations: 0.6292 MB / 0.7913 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.2473, allocations: 12.03 kB / 0.7913 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006961/0.248, allocations: 96.47 kB / 0.7914 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003113/0.2483, allocations: 279.4 kB / 0.7916 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.2484, allocations: 16.81 kB / 0.7916 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.023e-05/0.2484, allocations: 20.38 kB / 0.7917 GB, free: 5.422 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007637/0.2492, allocations: 418.9 kB / 0.7921 GB, free: 4.988 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.2492, allocations: 0 / 0.7921 GB, free: 4.988 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.821e-05/0.2493, allocations: 8 kB / 0.7921 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.928e-05/0.2493, allocations: 24.36 kB / 0.7921 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000844/0.2502, allocations: 388.8 kB / 0.7925 GB, free: 4.574 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001855/0.252, allocations: 1.622 MB / 0.7941 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.2532, allocations: 472.1 kB / 0.7945 GB, free: 2.348 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004005/0.2536, allocations: 189.6 kB / 0.7947 GB, free: 2.156 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000164/0.2538, allocations: 85.11 kB / 0.7948 GB, free: 2.055 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005434/0.2543, allocations: 274.5 kB / 0.795 GB, free: 1.77 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=27): time 1.734e-06/0.2543, allocations: 0 / 0.795 GB, free: 1.77 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.001899/0.2562, allocations: 0.7387 MB / 0.7957 GB, free: 1.004 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.762e-05/0.2563, allocations: 85.05 kB / 0.7958 GB, free: 0.9023 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002202/0.2565, allocations: 225 kB / 0.796 GB, free: 0.6719 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.63e-05/0.2566, allocations: 33.7 kB / 0.7961 GB, free: 0.6328 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.2567, allocations: 172.4 kB / 0.7962 GB, free: 472 kB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.452e-05/0.2568, allocations: 86.75 kB / 0.7963 GB, free: 384 kB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.2569, allocations: 69.59 kB / 0.7964 GB, free: 308 kB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.2571, allocations: 334.8 kB / 0.7967 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003878/0.2575, allocations: 173 kB / 0.7969 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004478/0.2579, allocations: 257 kB / 0.7971 GB, free: 15.51 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008439/0.2588, allocations: 447.4 kB / 0.7975 GB, free: 15.04 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.2588, allocations: 4 kB / 0.7975 GB, free: 15.04 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001091/0.2599, allocations: 0.5395 MB / 0.7981 GB, free: 14.48 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.945e-05/0.2599, allocations: 33.7 kB / 0.7981 GB, free: 14.44 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.2599, allocations: 7.922 kB / 0.7981 GB, free: 14.43 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000242/0.2602, allocations: 44.83 kB / 0.7982 GB, free: 14.39 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00045/0.2607, allocations: 84.02 kB / 0.7982 GB, free: 14.3 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001345/0.262, allocations: 1.607 MB / 0.7998 GB, free: 12.55 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000327/0.2623, allocations: 43.8 kB / 0.7998 GB, free: 12.51 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.615e-05/0.2624, allocations: 19.98 kB / 0.7999 GB, free: 12.49 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004789/0.2629, allocations: 272.3 kB / 0.8001 GB, free: 12.22 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004223/0.2633, allocations: 234.4 kB / 0.8004 GB, free: 11.96 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007776/0.2641, allocations: 438.8 kB / 0.8008 GB, free: 11.49 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.266e-06/0.2641, allocations: 0 / 0.8008 GB, free: 11.49 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001076/0.2652, allocations: 0.5137 MB / 0.8013 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.532e-05/0.2653, allocations: 29.7 kB / 0.8013 GB, free: 10.93 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.2653, allocations: 4 kB / 0.8013 GB, free: 10.93 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001775/0.2654, allocations: 45.28 kB / 0.8013 GB, free: 10.88 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003575/0.2658, allocations: 83.86 kB / 0.8014 GB, free: 10.8 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001427/0.2673, allocations: 1.619 MB / 0.803 GB, free: 9.027 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003202/0.2676, allocations: 43.84 kB / 0.803 GB, free: 8.984 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/0.2676, allocations: 15.98 kB / 0.8031 GB, free: 8.969 MB / 0.6231 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.0002158/0.2678, allocations: 204.6 kB / 0.8033 GB, free: 8.762 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.152e-05/0.2679, allocations: 23.72 kB / 0.8033 GB, free: 8.738 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001046/0.269, allocations: 468.4 kB / 0.8037 GB, free: 8.273 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.269, allocations: 0 / 0.8037 GB, free: 8.273 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.269, allocations: 4 kB / 0.8037 GB, free: 8.27 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.269, allocations: 3.938 kB / 0.8037 GB, free: 8.266 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006621/0.2697, allocations: 0.5622 MB / 0.8043 GB, free: 7.641 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.2697, allocations: 8.094 kB / 0.8043 GB, free: 7.633 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003825/0.2701, allocations: 71.86 kB / 0.8044 GB, free: 7.562 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001315/0.2702, allocations: 40.77 kB / 0.8044 GB, free: 7.52 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.068e-05/0.2702, allocations: 8 kB / 0.8044 GB, free: 7.512 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001218/0.2715, allocations: 1.527 MB / 0.8059 GB, free: 5.844 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2715, allocations: 0 / 0.8059 GB, free: 5.844 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009624/0.2725, allocations: 0.5418 MB / 0.8064 GB, free: 5.273 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001519/0.2726, allocations: 132.7 kB / 0.8066 GB, free: 5.125 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.479e-05/0.2727, allocations: 8 kB / 0.8066 GB, free: 5.117 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003013/0.273, allocations: 31.95 kB / 0.8066 GB, free: 5.086 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.938e-05/0.2731, allocations: 31.95 kB / 0.8066 GB, free: 5.055 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.397e-05/0.2731, allocations: 8 kB / 0.8066 GB, free: 5.047 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001701/0.2733, allocations: 172.5 kB / 0.8068 GB, free: 4.875 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2733, allocations: 4 kB / 0.8068 GB, free: 4.871 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006295/0.2739, allocations: 128 kB / 0.8069 GB, free: 4.746 MB / 0.6231 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.0001656/0.2741, allocations: 115.1 kB / 0.807 GB, free: 4.625 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001928/0.276, allocations: 1.008 MB / 0.808 GB, free: 3.566 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.2761, allocations: 0.8125 kB / 0.808 GB, free: 3.566 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0005776/0.2766, allocations: 327.3 kB / 0.8083 GB, free: 3.234 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004548/0.2771, allocations: 49.03 kB / 0.8084 GB, free: 3.188 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.2784, allocations: 0.7543 MB / 0.8091 GB, free: 2.387 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003701/0.2788, allocations: 0.78 MB / 0.8099 GB, free: 1.578 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.2789, allocations: 39.42 kB / 0.8099 GB, free: 1.539 MB / 0.6231 GB Notification: Performance of SimCode: time 6.01e-07/0.2789, allocations: 0 / 0.8099 GB, free: 1.539 MB / 0.6231 GB Notification: Performance of Templates: time 0.007692/0.2866, allocations: 5.119 MB / 0.8149 GB, free: 12.43 MB / 0.6387 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)