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.001237/0.001237, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 194.7 kB / 16.53 MB, free: 6.664 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.673/1.673, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.85/1.85, allocations: 292.3 MB / 0.5489 GB, free: 12.83 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.001409/0.001409, allocations: 67.89 kB / 0.6715 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3112, allocations: 114.6 MB / 0.7834 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.005259/0.3165, allocations: 3.034 MB / 0.7863 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003294/0.3199, allocations: 1.773 MB / 0.7881 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002624/0.3202, allocations: 4 kB / 0.7881 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0009036/0.3211, allocations: 231 kB / 0.7883 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.00063/0.3217, allocations: 199 kB / 0.7885 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008/0.3226, allocations: 256.2 kB / 0.7887 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006/0.3232, allocations: 390.7 kB / 0.7891 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004743/0.3236, allocations: 214.8 kB / 0.7893 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003421/0.324, allocations: 147.5 kB / 0.7894 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004441/0.3245, allocations: 187.3 kB / 0.7896 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.89e-05/0.3245, allocations: 24 kB / 0.7896 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005168/0.3251, allocations: 259.5 kB / 0.7899 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001392/0.3252, allocations: 103.6 kB / 0.79 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000169/0.3254, allocations: 139.3 kB / 0.7901 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0007851/0.3262, allocations: 470.6 kB / 0.7906 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3262, allocations: 0 / 0.7906 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.703e-06/0.3262, allocations: 0 / 0.7906 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.143e-05/0.3262, allocations: 0 / 0.7906 GB, free: 6.031 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.001429/0.3277, allocations: 0.6447 MB / 0.7912 GB, free: 5.328 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.3277, allocations: 8.031 kB / 0.7912 GB, free: 5.32 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007336/0.3284, allocations: 96.45 kB / 0.7913 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003509/0.3288, allocations: 279.5 kB / 0.7916 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.378e-05/0.3288, allocations: 16.8 kB / 0.7916 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.9e-05/0.3289, allocations: 20.38 kB / 0.7916 GB, free: 4.879 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007914/0.3297, allocations: 418.9 kB / 0.792 GB, free: 4.445 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.3297, allocations: 0 / 0.792 GB, free: 4.445 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.413e-05/0.3298, allocations: 8 kB / 0.792 GB, free: 4.438 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-05/0.3298, allocations: 24.36 kB / 0.792 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009124/0.3307, allocations: 388.7 kB / 0.7924 GB, free: 4.031 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001954/0.3327, allocations: 1.619 MB / 0.794 GB, free: 2.285 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001166/0.3339, allocations: 467.9 kB / 0.7944 GB, free: 1.812 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004179/0.3343, allocations: 197.6 kB / 0.7946 GB, free: 1.613 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001684/0.3345, allocations: 89.03 kB / 0.7947 GB, free: 1.508 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005463/0.335, allocations: 271.6 kB / 0.795 GB, free: 1.227 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=27): time 1.473e-06/0.3351, allocations: 0 / 0.795 GB, free: 1.227 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.001962/0.337, allocations: 0.7353 MB / 0.7957 GB, free: 476 kB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.058e-05/0.3371, allocations: 92.98 kB / 0.7958 GB, free: 364 kB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002329/0.3373, allocations: 217 kB / 0.796 GB, free: 136 kB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.779e-05/0.3374, allocations: 33.7 kB / 0.796 GB, free: 96 kB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/0.3375, allocations: 172.5 kB / 0.7962 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 8.686e-05/0.3376, allocations: 94.72 kB / 0.7963 GB, free: 15.83 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.3378, allocations: 65.61 kB / 0.7963 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.338, allocations: 334.8 kB / 0.7966 GB, free: 15.42 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004286/0.3384, allocations: 177 kB / 0.7968 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004875/0.3389, allocations: 245.1 kB / 0.7971 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009326/0.3398, allocations: 454.4 kB / 0.7975 GB, free: 14.5 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3398, allocations: 0 / 0.7975 GB, free: 14.5 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001175/0.341, allocations: 0.5356 MB / 0.798 GB, free: 13.95 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.952e-05/0.3411, allocations: 37.69 kB / 0.798 GB, free: 13.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.3411, allocations: 4 kB / 0.798 GB, free: 13.9 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002591/0.3414, allocations: 40.77 kB / 0.7981 GB, free: 13.86 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003808/0.3417, allocations: 88.02 kB / 0.7982 GB, free: 13.77 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001639/0.3434, allocations: 1.607 MB / 0.7997 GB, free: 12.02 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003542/0.3438, allocations: 51.78 kB / 0.7998 GB, free: 11.97 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.537e-05/0.3438, allocations: 8 kB / 0.7998 GB, free: 11.96 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004995/0.3443, allocations: 272.3 kB / 0.8001 GB, free: 11.69 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004391/0.3448, allocations: 238.4 kB / 0.8003 GB, free: 11.43 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008369/0.3456, allocations: 438.7 kB / 0.8007 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.956e-06/0.3456, allocations: 0 / 0.8007 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.0011/0.3467, allocations: 0.5137 MB / 0.8012 GB, free: 10.43 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.682e-05/0.3468, allocations: 37.7 kB / 0.8012 GB, free: 10.39 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/0.3468, allocations: 0 / 0.8012 GB, free: 10.39 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001546/0.347, allocations: 45.09 kB / 0.8013 GB, free: 10.34 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003397/0.3473, allocations: 79.88 kB / 0.8014 GB, free: 10.26 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/0.3488, allocations: 1.623 MB / 0.8029 GB, free: 8.488 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003174/0.3491, allocations: 39.81 kB / 0.803 GB, free: 8.449 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.261e-05/0.3492, allocations: 15.98 kB / 0.803 GB, free: 8.434 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.0001788/0.3494, allocations: 200.6 kB / 0.8032 GB, free: 8.23 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.488e-05/0.3494, allocations: 23.72 kB / 0.8032 GB, free: 8.207 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001071/0.3505, allocations: 469.4 kB / 0.8037 GB, free: 7.742 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.3505, allocations: 4 kB / 0.8037 GB, free: 7.738 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.3505, allocations: 0 / 0.8037 GB, free: 7.738 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.3505, allocations: 0 / 0.8037 GB, free: 7.738 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006959/0.3512, allocations: 0.5661 MB / 0.8042 GB, free: 7.109 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3513, allocations: 4.094 kB / 0.8042 GB, free: 7.105 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003973/0.3517, allocations: 75.86 kB / 0.8043 GB, free: 7.031 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001365/0.3518, allocations: 36.83 kB / 0.8043 GB, free: 6.992 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.015e-05/0.3518, allocations: 4 kB / 0.8043 GB, free: 6.988 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00128/0.3531, allocations: 1.523 MB / 0.8058 GB, free: 5.324 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.3532, allocations: 3.984 kB / 0.8058 GB, free: 5.32 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009994/0.3542, allocations: 0.5432 MB / 0.8064 GB, free: 4.75 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001596/0.3543, allocations: 140.7 kB / 0.8065 GB, free: 4.594 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.928e-05/0.3544, allocations: 8 kB / 0.8065 GB, free: 4.586 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002979/0.3547, allocations: 35.89 kB / 0.8065 GB, free: 4.551 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.3548, allocations: 35.89 kB / 0.8066 GB, free: 4.516 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.14e-05/0.3548, allocations: 8 kB / 0.8066 GB, free: 4.508 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001611/0.355, allocations: 172.5 kB / 0.8067 GB, free: 4.336 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.11e-07/0.355, allocations: 0 / 0.8067 GB, free: 4.336 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006492/0.3557, allocations: 132 kB / 0.8069 GB, free: 4.207 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.0002098/0.3559, allocations: 117.6 kB / 0.807 GB, free: 4.086 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002127/0.358, allocations: 1.004 MB / 0.808 GB, free: 3.031 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.768e-06/0.358, allocations: 0.8125 kB / 0.808 GB, free: 3.031 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0006043/0.3586, allocations: 335.3 kB / 0.8083 GB, free: 2.691 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004534/0.3591, allocations: 52.22 kB / 0.8083 GB, free: 2.641 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00154/0.3607, allocations: 0.6187 MB / 0.8089 GB, free: 1.984 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005493/0.3612, allocations: 0.7839 MB / 0.8097 GB, free: 1.176 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0003433/0.3616, allocations: 98.42 kB / 0.8098 GB, free: 1.082 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.3617, allocations: 27.44 kB / 0.8098 GB, free: 1.055 MB / 0.6231 GB Notification: Performance of SimCode: time 3.948e-06/0.3617, allocations: 0 / 0.8098 GB, free: 1.055 MB / 0.6231 GB Notification: Performance of Templates: time 0.01055/0.3723, allocations: 4.513 MB / 0.8142 GB, free: 12.56 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)