Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.711/1.711, allocations: 292.3 MB / 308.1 MB, free: 4.242 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001378/0.001378, allocations: 201.9 kB / 376.9 MB, free: 1.781 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.877/1.877, allocations: 205.1 MB / 0.6354 GB, free: 9.75 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001067/0.001067, allocations: 98.02 kB / 0.748 GB, free: 61.28 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001061/0.001062, allocations: 55.92 kB / 0.8704 GB, free: 13.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2951, allocations: 114.5 MB / 0.9822 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource): time 0.00567/0.3009, allocations: 3.59 MB / 0.9857 GB, free: 6.746 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.003044/0.3039, allocations: 1.804 MB / 0.9875 GB, free: 4.93 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002925/0.3043, allocations: 7.938 kB / 0.9875 GB, free: 4.922 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0009443/0.3052, allocations: 211.2 kB / 0.9877 GB, free: 4.715 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0006391/0.3059, allocations: 183.2 kB / 0.9879 GB, free: 4.535 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007214/0.3066, allocations: 231.5 kB / 0.9881 GB, free: 4.309 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0006297/0.3072, allocations: 0.4947 MB / 0.9886 GB, free: 3.812 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004254/0.3077, allocations: 206.1 kB / 0.9888 GB, free: 3.605 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002262/0.3079, allocations: 143.5 kB / 0.9889 GB, free: 3.465 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00036/0.3083, allocations: 183.4 kB / 0.9891 GB, free: 3.285 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 4.925e-05/0.3084, allocations: 16 kB / 0.9891 GB, free: 3.27 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005088/0.3089, allocations: 307.4 kB / 0.9894 GB, free: 2.969 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 0.0001251/0.309, allocations: 95.66 kB / 0.9895 GB, free: 2.875 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.3092, allocations: 139.2 kB / 0.9896 GB, free: 2.738 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0005271/0.3097, allocations: 482.4 kB / 0.9901 GB, free: 2.266 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3097, allocations: 0 / 0.9901 GB, free: 2.266 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.092e-06/0.3097, allocations: 0 / 0.9901 GB, free: 2.266 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.463e-06/0.3097, allocations: 0 / 0.9901 GB, free: 2.266 MB / 0.7136 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.001279/0.311, allocations: 0.6292 MB / 0.9907 GB, free: 1.582 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.3111, allocations: 15.95 kB / 0.9907 GB, free: 1.566 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006545/0.3117, allocations: 96.56 kB / 0.9908 GB, free: 1.473 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003508/0.3121, allocations: 283.4 kB / 0.9911 GB, free: 1.156 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.3121, allocations: 12.81 kB / 0.9911 GB, free: 1.145 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.794e-05/0.3122, allocations: 16.38 kB / 0.9911 GB, free: 1.129 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000738/0.3129, allocations: 422.9 kB / 0.9915 GB, free: 0.6914 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.3129, allocations: 0 / 0.9915 GB, free: 0.6914 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.282e-05/0.313, allocations: 11.98 kB / 0.9915 GB, free: 0.6797 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.557e-05/0.313, allocations: 28.34 kB / 0.9915 GB, free: 0.6484 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008107/0.3138, allocations: 396.6 kB / 0.9919 GB, free: 268 kB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/0.3157, allocations: 1.603 MB / 0.9935 GB, free: 14.53 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.3168, allocations: 464.1 kB / 0.9939 GB, free: 14.06 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000404/0.3172, allocations: 193.5 kB / 0.9941 GB, free: 13.87 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001537/0.3174, allocations: 89.09 kB / 0.9942 GB, free: 13.76 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005341/0.3179, allocations: 266.5 kB / 0.9945 GB, free: 13.48 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=27): time 2.495e-06/0.3179, allocations: 0 / 0.9945 GB, free: 13.48 MB / 0.7292 GB Notification: Performance of matching and sorting (n=28): time 0.001976/0.3199, allocations: 0.7399 MB / 0.9952 GB, free: 12.71 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.974e-05/0.32, allocations: 81.11 kB / 0.9953 GB, free: 12.62 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002417/0.3202, allocations: 228.9 kB / 0.9955 GB, free: 12.39 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.751e-05/0.3203, allocations: 37.64 kB / 0.9955 GB, free: 12.34 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.3204, allocations: 160.4 kB / 0.9957 GB, free: 12.18 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 9.075e-05/0.3205, allocations: 98.84 kB / 0.9958 GB, free: 12.09 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/0.3206, allocations: 69.44 kB / 0.9958 GB, free: 12.01 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.3208, allocations: 330.8 kB / 0.9961 GB, free: 11.68 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004118/0.3212, allocations: 173.1 kB / 0.9963 GB, free: 11.51 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000426/0.3216, allocations: 241.3 kB / 0.9965 GB, free: 11.24 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008139/0.3225, allocations: 466.4 kB / 0.997 GB, free: 10.75 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3225, allocations: 0 / 0.997 GB, free: 10.75 MB / 0.7292 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001116/0.3236, allocations: 0.5356 MB / 0.9975 GB, free: 10.2 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.951e-05/0.3236, allocations: 33.7 kB / 0.9975 GB, free: 10.16 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.3237, allocations: 4 kB / 0.9975 GB, free: 10.16 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002436/0.3239, allocations: 44.81 kB / 0.9976 GB, free: 10.11 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000389/0.3243, allocations: 83.8 kB / 0.9977 GB, free: 10.03 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001465/0.3258, allocations: 1.505 MB / 0.9991 GB, free: 8.387 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003274/0.3261, allocations: 43.8 kB / 0.9992 GB, free: 8.344 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.319e-05/0.3262, allocations: 20.05 kB / 0.9992 GB, free: 8.324 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004649/0.3267, allocations: 276.3 kB / 0.9995 GB, free: 8.051 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004264/0.3271, allocations: 238.9 kB / 0.9997 GB, free: 7.785 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007861/0.3279, allocations: 429 kB / 1 GB, free: 7.328 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.514e-06/0.3279, allocations: 0 / 1 GB, free: 7.328 MB / 0.7292 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001104/0.329, allocations: 0.5111 MB / 1.001 GB, free: 6.801 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.3291, allocations: 33.98 kB / 1.001 GB, free: 6.762 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.579e-05/0.3291, allocations: 7.938 kB / 1.001 GB, free: 6.754 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001352/0.3292, allocations: 36.83 kB / 1.001 GB, free: 6.715 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003429/0.3296, allocations: 83.86 kB / 1.001 GB, free: 6.633 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001246/0.3308, allocations: 1.497 MB / 1.002 GB, free: 4.988 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003424/0.3312, allocations: 43.8 kB / 1.002 GB, free: 4.945 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.366e-05/0.3312, allocations: 16 kB / 1.002 GB, free: 4.93 MB / 0.7292 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.0001882/0.3314, allocations: 208.2 kB / 1.002 GB, free: 4.719 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.304e-05/0.3315, allocations: 27.72 kB / 1.002 GB, free: 4.691 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001037/0.3325, allocations: 464.7 kB / 1.003 GB, free: 4.234 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.3325, allocations: 7.938 kB / 1.003 GB, free: 4.227 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3326, allocations: 4 kB / 1.003 GB, free: 4.223 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.3326, allocations: 3.938 kB / 1.003 GB, free: 4.219 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007027/0.3333, allocations: 0.5584 MB / 1.003 GB, free: 3.598 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.3333, allocations: 8.031 kB / 1.004 GB, free: 3.59 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003571/0.3337, allocations: 79.86 kB / 1.004 GB, free: 3.512 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001281/0.3338, allocations: 32.83 kB / 1.004 GB, free: 3.477 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.356e-05/0.3338, allocations: 11.94 kB / 1.004 GB, free: 3.465 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001064/0.3349, allocations: 1.416 MB / 1.005 GB, free: 1.914 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3349, allocations: 144 / 1.005 GB, free: 1.914 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001625/0.3366, allocations: 1.336 MB / 1.006 GB, free: 0.5078 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001556/0.3367, allocations: 132.7 kB / 1.006 GB, free: 368 kB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.083e-05/0.3368, allocations: 11.94 kB / 1.006 GB, free: 356 kB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002906/0.3371, allocations: 31.95 kB / 1.006 GB, free: 324 kB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.3372, allocations: 27.95 kB / 1.007 GB, free: 296 kB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-05/0.3372, allocations: 16 kB / 1.007 GB, free: 280 kB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001646/0.3374, allocations: 176.5 kB / 1.007 GB, free: 100 kB / 0.7292 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3374, allocations: 0 / 1.007 GB, free: 100 kB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0008043/0.3382, allocations: 128 kB / 1.007 GB, free: 15.97 MB / 0.7448 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.0001899/0.3384, allocations: 111.2 kB / 1.007 GB, free: 15.85 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.001924/0.3404, allocations: 0.9763 MB / 1.008 GB, free: 14.83 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.3404, allocations: 0 / 1.008 GB, free: 14.83 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0005881/0.341, allocations: 331.4 kB / 1.008 GB, free: 14.49 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004354/0.3414, allocations: 46.06 kB / 1.008 GB, free: 14.45 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.3429, allocations: 0.9385 MB / 1.009 GB, free: 13.46 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003813/0.3433, allocations: 0.7956 MB / 1.01 GB, free: 12.64 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0003032/0.3436, allocations: 90.2 kB / 1.01 GB, free: 12.55 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.794e-05/0.3437, allocations: 27.44 kB / 1.01 GB, free: 12.53 MB / 0.7448 GB Notification: Performance of SimCode: time 6.81e-07/0.3438, allocations: 0 / 1.01 GB, free: 12.53 MB / 0.7448 GB Notification: Performance of Templates: time 0.008618/0.3524, allocations: 4.399 MB / 1.014 GB, free: 8.145 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & ./Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1)