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/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.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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.815/1.815, allocations: 292.3 MB / 308.1 MB, free: 4.281 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.001395/0.001395, allocations: 187.7 kB / 376.9 MB, free: 1.828 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.879/1.879, allocations: 205.1 MB / 0.6354 GB, free: 9.809 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.0009714/0.0009713, allocations: 99.22 kB / 0.748 GB, free: 61.29 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001052/0.001052, allocations: 55.91 kB / 0.8704 GB, free: 13.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.2724, allocations: 114.5 MB / 0.9822 GB, free: 10.4 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.005867/0.2784, allocations: 3.092 MB / 0.9852 GB, free: 7.285 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.003399/0.2818, allocations: 1.797 MB / 0.987 GB, free: 5.477 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000285/0.2821, allocations: 4 kB / 0.987 GB, free: 5.473 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0009419/0.2831, allocations: 223.1 kB / 0.9872 GB, free: 5.254 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.000643/0.2838, allocations: 187.2 kB / 0.9874 GB, free: 5.07 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007583/0.2846, allocations: 223.5 kB / 0.9876 GB, free: 4.852 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0006692/0.2852, allocations: 0.4908 MB / 0.9881 GB, free: 4.359 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005207/0.2858, allocations: 206.1 kB / 0.9883 GB, free: 4.152 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003637/0.2861, allocations: 147.4 kB / 0.9884 GB, free: 4.008 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004404/0.2866, allocations: 179.4 kB / 0.9886 GB, free: 3.832 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 0.000128/0.2867, allocations: 16 kB / 0.9886 GB, free: 3.816 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006378/0.2874, allocations: 311.4 kB / 0.9889 GB, free: 3.512 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 0.0001571/0.2876, allocations: 91.7 kB / 0.989 GB, free: 3.422 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.0002009/0.2878, allocations: 135.3 kB / 0.9891 GB, free: 3.289 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0008037/0.2886, allocations: 478.4 kB / 0.9896 GB, free: 2.82 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.2886, allocations: 4 kB / 0.9896 GB, free: 2.816 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.493e-06/0.2886, allocations: 0 / 0.9896 GB, free: 2.816 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.587e-05/0.2886, allocations: 0 / 0.9896 GB, free: 2.816 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.001545/0.2902, allocations: 0.6332 MB / 0.9902 GB, free: 2.129 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.2902, allocations: 8.031 kB / 0.9902 GB, free: 2.121 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008072/0.291, allocations: 96.45 kB / 0.9903 GB, free: 2.027 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004385/0.2915, allocations: 283.5 kB / 0.9906 GB, free: 1.711 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.2915, allocations: 24.8 kB / 0.9906 GB, free: 1.688 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.77e-05/0.2916, allocations: 16.38 kB / 0.9906 GB, free: 1.672 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008084/0.2924, allocations: 418.9 kB / 0.991 GB, free: 1.238 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.817e-05/0.2924, allocations: 7.844 kB / 0.991 GB, free: 1.23 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.537e-05/0.2925, allocations: 12 kB / 0.991 GB, free: 1.219 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.161e-05/0.2925, allocations: 20.36 kB / 0.991 GB, free: 1.195 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008901/0.2934, allocations: 384.8 kB / 0.9914 GB, free: 0.8203 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002042/0.2955, allocations: 1.607 MB / 0.993 GB, free: 15.09 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.2966, allocations: 463.2 kB / 0.9934 GB, free: 14.62 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004343/0.2971, allocations: 209.4 kB / 0.9936 GB, free: 14.41 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00017/0.2973, allocations: 85.09 kB / 0.9937 GB, free: 14.3 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005555/0.2978, allocations: 270.5 kB / 0.994 GB, free: 14.02 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=27): time 2.765e-06/0.2978, allocations: 0 / 0.994 GB, free: 14.02 MB / 0.7292 GB Notification: Performance of matching and sorting (n=28): time 0.00192/0.2998, allocations: 0.7439 MB / 0.9947 GB, free: 13.25 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.917e-05/0.2999, allocations: 81.11 kB / 0.9948 GB, free: 13.15 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002635/0.3001, allocations: 221 kB / 0.995 GB, free: 12.93 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.616e-05/0.3002, allocations: 33.7 kB / 0.995 GB, free: 12.89 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.3003, allocations: 168.2 kB / 0.9952 GB, free: 12.72 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 8.845e-05/0.3004, allocations: 94.64 kB / 0.9953 GB, free: 12.63 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.3006, allocations: 65.45 kB / 0.9953 GB, free: 12.56 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001624/0.3007, allocations: 338.8 kB / 0.9956 GB, free: 12.22 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004286/0.3012, allocations: 177 kB / 0.9958 GB, free: 12.04 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004677/0.3016, allocations: 245.3 kB / 0.9961 GB, free: 11.77 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009082/0.3026, allocations: 458.4 kB / 0.9965 GB, free: 11.29 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3026, allocations: 4 kB / 0.9965 GB, free: 11.29 MB / 0.7292 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001296/0.3039, allocations: 0.5279 MB / 0.997 GB, free: 10.74 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 5.643e-05/0.3039, allocations: 43.81 kB / 0.9971 GB, free: 10.7 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.929e-05/0.304, allocations: 4 kB / 0.9971 GB, free: 10.69 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002607/0.3042, allocations: 36.83 kB / 0.9971 GB, free: 10.65 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004043/0.3046, allocations: 83.86 kB / 0.9972 GB, free: 10.57 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001532/0.3062, allocations: 1.497 MB / 0.9986 GB, free: 8.938 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003679/0.3066, allocations: 43.8 kB / 0.9987 GB, free: 8.895 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.975e-05/0.3066, allocations: 16 kB / 0.9987 GB, free: 8.879 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005537/0.3072, allocations: 276.4 kB / 0.999 GB, free: 8.605 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004383/0.3076, allocations: 246.8 kB / 0.9992 GB, free: 8.332 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008401/0.3085, allocations: 433 kB / 0.9996 GB, free: 7.871 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.475e-06/0.3085, allocations: 0 / 0.9996 GB, free: 7.871 MB / 0.7292 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001151/0.3097, allocations: 0.5111 MB / 1 GB, free: 7.344 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.241e-05/0.3097, allocations: 29.7 kB / 1 GB, free: 7.309 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.3097, allocations: 12.16 kB / 1 GB, free: 7.297 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001667/0.3099, allocations: 48.81 kB / 1 GB, free: 7.246 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003681/0.3103, allocations: 79.88 kB / 1 GB, free: 7.168 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001504/0.3118, allocations: 1.493 MB / 1.002 GB, free: 5.527 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003436/0.3121, allocations: 39.81 kB / 1.002 GB, free: 5.488 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.577e-05/0.3122, allocations: 23.92 kB / 1.002 GB, free: 5.465 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.0002073/0.3124, allocations: 200.1 kB / 1.002 GB, free: 5.262 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.326e-05/0.3125, allocations: 31.78 kB / 1.002 GB, free: 5.23 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/0.3136, allocations: 464.8 kB / 1.002 GB, free: 4.773 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3136, allocations: 0 / 1.002 GB, free: 4.773 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.3137, allocations: 4.141 kB / 1.002 GB, free: 4.77 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.3137, allocations: 11.91 kB / 1.002 GB, free: 4.758 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008843/0.3146, allocations: 0.5583 MB / 1.003 GB, free: 4.137 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.427e-06/0.3146, allocations: 4 kB / 1.003 GB, free: 4.133 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003964/0.315, allocations: 72.02 kB / 1.003 GB, free: 4.062 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001511/0.3152, allocations: 40.77 kB / 1.003 GB, free: 4.02 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.69e-05/0.3152, allocations: 11.94 kB / 1.003 GB, free: 4.008 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001434/0.3167, allocations: 1.405 MB / 1.005 GB, free: 2.469 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.157e-06/0.3167, allocations: 4 kB / 1.005 GB, free: 2.465 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001921/0.3186, allocations: 1.333 MB / 1.006 GB, free: 1.062 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002393/0.3189, allocations: 128.7 kB / 1.006 GB, free: 0.918 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.097e-05/0.3189, allocations: 15.92 kB / 1.006 GB, free: 0.9023 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003175/0.3193, allocations: 35.95 kB / 1.006 GB, free: 0.8672 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/0.3194, allocations: 27.95 kB / 1.006 GB, free: 0.8398 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.011e-05/0.3194, allocations: 12 kB / 1.006 GB, free: 0.8281 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002068/0.3196, allocations: 168.5 kB / 1.006 GB, free: 0.6602 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.482e-06/0.3197, allocations: 0 / 1.006 GB, free: 0.6602 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001034/0.3207, allocations: 135.9 kB / 1.006 GB, free: 0.5273 MB / 0.7292 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.0003171/0.321, allocations: 111.2 kB / 1.006 GB, free: 420 kB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.002311/0.3233, allocations: 0.9725 MB / 1.007 GB, free: 15.39 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.3234, allocations: 0 / 1.007 GB, free: 15.39 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.000642/0.324, allocations: 327.2 kB / 1.008 GB, free: 15.05 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005079/0.3245, allocations: 54.17 kB / 1.008 GB, free: 15 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001602/0.3261, allocations: 0.9231 MB / 1.009 GB, free: 14.03 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004941/0.3267, allocations: 0.7917 MB / 1.009 GB, free: 13.21 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0003374/0.327, allocations: 98.33 kB / 1.009 GB, free: 13.12 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/0.3271, allocations: 27.42 kB / 1.01 GB, free: 13.09 MB / 0.7448 GB Notification: Performance of SimCode: time 1.002e-06/0.3271, allocations: 0 / 1.01 GB, free: 13.09 MB / 0.7448 GB Notification: Performance of Templates: time 0.009374/0.3365, allocations: 4.396 MB / 1.014 GB, free: 8.711 MB / 0.7448 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)