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.001169/0.001169, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001668/0.001668, allocations: 187.8 kB / 16.25 MB, free: 6.629 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.1 MB, free: 4.719 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.808/1.808, allocations: 292.2 MB / 0.5485 GB, free: 13.65 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.001468/0.001468, allocations: 68.17 kB / 0.671 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3263/0.3277, allocations: 114.6 MB / 0.7829 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.005037/0.3328, allocations: 3.077 MB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002953/0.3358, allocations: 1.762 MB / 0.7876 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000176/0.336, allocations: 7.938 kB / 0.7876 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0008024/0.3369, allocations: 219.2 kB / 0.7878 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000529/0.3374, allocations: 183.2 kB / 0.788 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007318/0.3382, allocations: 227.5 kB / 0.7882 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004727/0.3386, allocations: 390.7 kB / 0.7886 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005051/0.3392, allocations: 242.7 kB / 0.7888 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000269/0.3394, allocations: 147.5 kB / 0.7889 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000357/0.3398, allocations: 191.3 kB / 0.7891 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.748e-05/0.3399, allocations: 24 kB / 0.7891 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000478/0.3404, allocations: 263.5 kB / 0.7894 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.3405, allocations: 103.6 kB / 0.7895 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.3407, allocations: 139.3 kB / 0.7896 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0006605/0.3414, allocations: 486.5 kB / 0.7901 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.3414, allocations: 0 / 0.7901 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.515e-06/0.3414, allocations: 0 / 0.7901 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.656e-06/0.3414, allocations: 0 / 0.7901 GB, free: 6.496 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.001489/0.3429, allocations: 0.6447 MB / 0.7907 GB, free: 5.793 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.541e-05/0.343, allocations: 8.031 kB / 0.7907 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007647/0.3437, allocations: 96.45 kB / 0.7908 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003729/0.3441, allocations: 275.5 kB / 0.7911 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.535e-05/0.3441, allocations: 24.77 kB / 0.7911 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.376e-05/0.3442, allocations: 16.38 kB / 0.7911 GB, free: 5.344 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008396/0.345, allocations: 422.9 kB / 0.7915 GB, free: 4.906 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.3451, allocations: 0 / 0.7915 GB, free: 4.906 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.826e-05/0.3451, allocations: 8 kB / 0.7915 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.037e-05/0.3452, allocations: 24.36 kB / 0.7916 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008237/0.346, allocations: 388.7 kB / 0.7919 GB, free: 4.492 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001888/0.3479, allocations: 1.611 MB / 0.7935 GB, free: 2.754 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.3491, allocations: 472.1 kB / 0.794 GB, free: 2.277 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004113/0.3495, allocations: 193.5 kB / 0.7941 GB, free: 2.082 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001851/0.3497, allocations: 89.09 kB / 0.7942 GB, free: 1.977 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005549/0.3503, allocations: 270.5 kB / 0.7945 GB, free: 1.695 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=27): time 1.543e-06/0.3503, allocations: 0 / 0.7945 GB, free: 1.695 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.001891/0.3522, allocations: 0.7388 MB / 0.7952 GB, free: 0.9297 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.048e-05/0.3523, allocations: 88.98 kB / 0.7953 GB, free: 0.8242 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002239/0.3525, allocations: 221 kB / 0.7955 GB, free: 0.5977 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.538e-05/0.3526, allocations: 33.89 kB / 0.7955 GB, free: 0.5586 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.3527, allocations: 168.3 kB / 0.7957 GB, free: 400 kB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 7.831e-05/0.3527, allocations: 94.73 kB / 0.7958 GB, free: 304 kB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001243/0.3529, allocations: 69.59 kB / 0.7958 GB, free: 228 kB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001547/0.353, allocations: 330.8 kB / 0.7962 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003866/0.3534, allocations: 177.1 kB / 0.7963 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004086/0.3539, allocations: 245.1 kB / 0.7966 GB, free: 15.45 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008137/0.3547, allocations: 451.4 kB / 0.797 GB, free: 14.97 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3547, allocations: 0 / 0.797 GB, free: 14.97 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00108/0.3558, allocations: 0.5395 MB / 0.7975 GB, free: 14.41 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.796e-05/0.3558, allocations: 33.7 kB / 0.7976 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.3559, allocations: 4 kB / 0.7976 GB, free: 14.37 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002598/0.3561, allocations: 52.78 kB / 0.7976 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003827/0.3565, allocations: 84.02 kB / 0.7977 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001531/0.3581, allocations: 1.611 MB / 0.7993 GB, free: 12.48 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003433/0.3584, allocations: 43.8 kB / 0.7993 GB, free: 12.44 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.454e-05/0.3585, allocations: 15.98 kB / 0.7993 GB, free: 12.42 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004852/0.359, allocations: 276.4 kB / 0.7996 GB, free: 12.15 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004089/0.3594, allocations: 230.3 kB / 0.7998 GB, free: 11.89 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007513/0.3601, allocations: 442.7 kB / 0.8002 GB, free: 11.42 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.624e-06/0.3601, allocations: 0 / 0.8002 GB, free: 11.42 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.00107/0.3612, allocations: 0.5175 MB / 0.8007 GB, free: 10.89 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.435e-05/0.3613, allocations: 33.7 kB / 0.8008 GB, free: 10.85 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/0.3613, allocations: 0 / 0.8008 GB, free: 10.85 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001483/0.3614, allocations: 49.09 kB / 0.8008 GB, free: 10.8 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003476/0.3618, allocations: 79.81 kB / 0.8009 GB, free: 10.72 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001471/0.3633, allocations: 1.615 MB / 0.8025 GB, free: 8.953 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003071/0.3636, allocations: 47.8 kB / 0.8025 GB, free: 8.906 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.822e-05/0.3636, allocations: 12 kB / 0.8025 GB, free: 8.895 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.0002285/0.3639, allocations: 204.6 kB / 0.8027 GB, free: 8.688 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.526e-05/0.3639, allocations: 23.72 kB / 0.8027 GB, free: 8.664 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001115/0.365, allocations: 468.4 kB / 0.8032 GB, free: 8.199 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.3651, allocations: 4 kB / 0.8032 GB, free: 8.195 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.3651, allocations: 0 / 0.8032 GB, free: 8.195 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.3651, allocations: 0 / 0.8032 GB, free: 8.195 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007218/0.3658, allocations: 0.5661 MB / 0.8037 GB, free: 7.566 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3658, allocations: 4.094 kB / 0.8037 GB, free: 7.562 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003565/0.3662, allocations: 75.86 kB / 0.8038 GB, free: 7.488 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001312/0.3663, allocations: 36.83 kB / 0.8039 GB, free: 7.449 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.841e-05/0.3664, allocations: 4 kB / 0.8039 GB, free: 7.445 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001274/0.3677, allocations: 1.523 MB / 0.8053 GB, free: 5.781 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3677, allocations: 0 / 0.8053 GB, free: 5.781 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009597/0.3686, allocations: 0.5419 MB / 0.8059 GB, free: 5.211 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001409/0.3688, allocations: 136.7 kB / 0.806 GB, free: 5.059 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.73e-05/0.3688, allocations: 8 kB / 0.806 GB, free: 5.051 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003179/0.3692, allocations: 35.89 kB / 0.806 GB, free: 5.016 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.3693, allocations: 31.89 kB / 0.8061 GB, free: 4.984 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.617e-05/0.3693, allocations: 12 kB / 0.8061 GB, free: 4.973 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.000167/0.3695, allocations: 172.5 kB / 0.8063 GB, free: 4.801 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.91e-07/0.3695, allocations: 4 kB / 0.8063 GB, free: 4.797 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006493/0.3702, allocations: 124 kB / 0.8064 GB, free: 4.676 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.0002298/0.3704, allocations: 119.2 kB / 0.8065 GB, free: 4.551 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001973/0.3724, allocations: 1.007 MB / 0.8075 GB, free: 3.492 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.3724, allocations: 0.8125 kB / 0.8075 GB, free: 3.492 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0005882/0.373, allocations: 331.3 kB / 0.8078 GB, free: 3.156 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004745/0.3735, allocations: 57.25 kB / 0.8078 GB, free: 3.102 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001267/0.3748, allocations: 0.7136 MB / 0.8085 GB, free: 2.348 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003812/0.3752, allocations: 0.7761 MB / 0.8093 GB, free: 1.543 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002981/0.3755, allocations: 102.1 kB / 0.8094 GB, free: 1.445 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.3756, allocations: 27.44 kB / 0.8094 GB, free: 1.418 MB / 0.6231 GB Notification: Performance of SimCode: time 1.212e-06/0.3756, allocations: 0 / 0.8094 GB, free: 1.418 MB / 0.6231 GB Notification: Performance of Templates: time 0.00908/0.3847, allocations: 4.419 MB / 0.8137 GB, free: 13.02 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)