Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.328/2.328, allocations: 391.2 MB / 407 MB, free: 10.78 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 191.4 kB / 499.1 MB, free: 4.598 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 222.9 MB / 0.7948 GB, free: 15.75 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 103.7 kB / 0.9329 GB, free: 7.047 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001046/0.001046, allocations: 53.17 kB / 1.081 GB, free: 218.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/0.296, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource): time 0.004555/0.3006, allocations: 3.596 MB / 1.222 GB, free: 113.6 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.002211/0.3028, allocations: 1.745 MB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.303, allocations: 7.938 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.0006804/0.3037, allocations: 215.3 kB / 1.224 GB, free: 111.6 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.0003453/0.3041, allocations: 187.2 kB / 1.224 GB, free: 111.4 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004874/0.3046, allocations: 223.5 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0003655/0.305, allocations: 0.4908 MB / 1.224 GB, free: 110.7 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000349/0.3053, allocations: 209.8 kB / 1.225 GB, free: 110.5 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001821/0.3055, allocations: 139.5 kB / 1.225 GB, free: 110.4 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002513/0.3058, allocations: 179.3 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 3.535e-05/0.3058, allocations: 20 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003662/0.3062, allocations: 315.4 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 9.171e-05/0.3063, allocations: 87.7 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.3064, allocations: 135.3 kB / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0004021/0.3068, allocations: 468.6 kB / 1.226 GB, free: 109.2 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3068, allocations: 11.94 kB / 1.226 GB, free: 109.2 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3069, allocations: 0 / 1.226 GB, free: 109.2 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.3069, allocations: 0 / 1.226 GB, free: 109.2 MB / 0.823 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.001135/0.308, allocations: 0.6459 MB / 1.227 GB, free: 108.5 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.3081, allocations: 11.98 kB / 1.227 GB, free: 108.5 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006285/0.3087, allocations: 92.56 kB / 1.227 GB, free: 108.4 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.309, allocations: 283.4 kB / 1.227 GB, free: 108.1 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.309, allocations: 20.8 kB / 1.227 GB, free: 108.1 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.604e-05/0.3091, allocations: 20.38 kB / 1.227 GB, free: 108 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006287/0.3097, allocations: 418.9 kB / 1.227 GB, free: 107.6 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.3097, allocations: 0 / 1.227 GB, free: 107.6 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.221e-05/0.3098, allocations: 11.94 kB / 1.227 GB, free: 107.6 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.841e-05/0.3098, allocations: 24.36 kB / 1.227 GB, free: 107.6 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007267/0.3106, allocations: 384.5 kB / 1.228 GB, free: 107.2 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001435/0.312, allocations: 1.611 MB / 1.229 GB, free: 105.4 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009838/0.313, allocations: 469 kB / 1.23 GB, free: 105 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003517/0.3134, allocations: 196 kB / 1.23 GB, free: 104.8 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001267/0.3135, allocations: 89.05 kB / 1.23 GB, free: 104.7 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004646/0.314, allocations: 274.5 kB / 1.23 GB, free: 104.4 MB / 0.823 GB Notification: Performance of pre-optimization done (n=27): time 1.713e-06/0.314, allocations: 0 / 1.23 GB, free: 104.4 MB / 0.823 GB Notification: Performance of matching and sorting (n=28): time 0.00165/0.3156, allocations: 0.7378 MB / 1.231 GB, free: 103.6 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.3157, allocations: 85.11 kB / 1.231 GB, free: 103.5 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.3159, allocations: 232.9 kB / 1.231 GB, free: 103.3 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/0.3159, allocations: 29.7 kB / 1.231 GB, free: 103.2 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 6.953e-05/0.316, allocations: 160.4 kB / 1.231 GB, free: 103.1 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 5.304e-05/0.316, allocations: 94.64 kB / 1.232 GB, free: 103 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.733e-05/0.3161, allocations: 65.69 kB / 1.232 GB, free: 102.9 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 5.834e-05/0.3162, allocations: 338.8 kB / 1.232 GB, free: 102.6 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003515/0.3166, allocations: 169.1 kB / 1.232 GB, free: 102.4 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003688/0.3169, allocations: 255 kB / 1.232 GB, free: 102.1 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007121/0.3176, allocations: 463.8 kB / 1.233 GB, free: 101.6 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3177, allocations: 4 kB / 1.233 GB, free: 101.6 MB / 0.823 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009446/0.3186, allocations: 0.5281 MB / 1.233 GB, free: 101.1 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 3.242e-05/0.3187, allocations: 34.64 kB / 1.233 GB, free: 101.1 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.3187, allocations: 0 / 1.233 GB, free: 101.1 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002255/0.3189, allocations: 44.75 kB / 1.233 GB, free: 101 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003766/0.3193, allocations: 87.86 kB / 1.234 GB, free: 100.9 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.3204, allocations: 1.497 MB / 1.235 GB, free: 99.28 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003123/0.3207, allocations: 47.8 kB / 1.235 GB, free: 99.23 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.909e-05/0.3208, allocations: 15.98 kB / 1.235 GB, free: 99.22 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004132/0.3212, allocations: 276.4 kB / 1.235 GB, free: 98.95 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003393/0.3215, allocations: 238.6 kB / 1.236 GB, free: 98.68 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006373/0.3222, allocations: 435.9 kB / 1.236 GB, free: 98.21 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.574e-06/0.3222, allocations: 7.938 kB / 1.236 GB, free: 98.21 MB / 0.823 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.0009131/0.3231, allocations: 0.5005 MB / 1.236 GB, free: 97.69 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/0.3231, allocations: 37.7 kB / 1.236 GB, free: 97.65 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3231, allocations: 8.219 kB / 1.236 GB, free: 97.64 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001313/0.3233, allocations: 48.75 kB / 1.237 GB, free: 97.59 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003031/0.3236, allocations: 79.88 kB / 1.237 GB, free: 97.51 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008974/0.3245, allocations: 1.489 MB / 1.238 GB, free: 95.89 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000272/0.3248, allocations: 39.81 kB / 1.238 GB, free: 95.85 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.527e-05/0.3248, allocations: 16.17 kB / 1.238 GB, free: 95.83 MB / 0.823 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.0001399/0.325, allocations: 202 kB / 1.238 GB, free: 95.63 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.385e-05/0.325, allocations: 31.7 kB / 1.238 GB, free: 95.6 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009016/0.3259, allocations: 470.1 kB / 1.239 GB, free: 95.12 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.3259, allocations: 4 kB / 1.239 GB, free: 95.12 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.326, allocations: 0 / 1.239 GB, free: 95.12 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.326, allocations: 3.938 kB / 1.239 GB, free: 95.12 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005114/0.3265, allocations: 0.5661 MB / 1.239 GB, free: 94.49 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3265, allocations: 0 / 1.239 GB, free: 94.49 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003286/0.3268, allocations: 76.02 kB / 1.239 GB, free: 94.41 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000106/0.3269, allocations: 36.83 kB / 1.239 GB, free: 94.38 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.327, allocations: 7.938 kB / 1.239 GB, free: 94.37 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000738/0.3277, allocations: 1.416 MB / 1.241 GB, free: 92.82 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3277, allocations: 0 / 1.241 GB, free: 92.82 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001332/0.3291, allocations: 1.325 MB / 1.242 GB, free: 91.43 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001207/0.3292, allocations: 132.7 kB / 1.242 GB, free: 91.28 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.762e-05/0.3292, allocations: 15.92 kB / 1.242 GB, free: 91.26 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000276/0.3295, allocations: 39.95 kB / 1.242 GB, free: 91.22 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.121e-05/0.3296, allocations: 24.11 kB / 1.242 GB, free: 91.2 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.361e-05/0.3297, allocations: 15.98 kB / 1.242 GB, free: 91.18 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.0001248/0.3298, allocations: 168.5 kB / 1.243 GB, free: 91.02 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3298, allocations: 0 / 1.243 GB, free: 91.02 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0007507/0.3306, allocations: 128 kB / 1.243 GB, free: 90.89 MB / 0.823 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.0001471/0.3307, allocations: 123.2 kB / 1.243 GB, free: 90.77 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.001608/0.3323, allocations: 0.9846 MB / 1.244 GB, free: 89.73 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3323, allocations: 3.938 kB / 1.244 GB, free: 89.73 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005006/0.3328, allocations: 327.2 kB / 1.244 GB, free: 89.39 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004043/0.3333, allocations: 52.33 kB / 1.244 GB, free: 89.34 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.3343, allocations: 0.9288 MB / 1.245 GB, free: 88.37 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001883/0.3345, allocations: 0.7956 MB / 1.246 GB, free: 87.55 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.000263/0.3348, allocations: 94.2 kB / 1.246 GB, free: 87.45 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.846e-05/0.3349, allocations: 27.38 kB / 1.246 GB, free: 87.42 MB / 0.823 GB Notification: Performance of SimCode: time 2.11e-07/0.3349, allocations: 0 / 1.246 GB, free: 87.42 MB / 0.823 GB Notification: Performance of Templates: time 0.006721/0.3416, allocations: 4.402 MB / 1.25 GB, free: 83.07 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1)