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.001198/0.001198, allocations: 109.4 kB / 15.69 MB, free: 124 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.001557/0.001558, allocations: 189.5 kB / 16.62 MB, free: 6.578 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.595/1.595, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.784/1.784, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.001444/0.001444, allocations: 70.56 kB / 0.6723 GB, free: 25.92 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2547, allocations: 114.5 MB / 0.7841 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.005145/0.2599, allocations: 3.034 MB / 0.7871 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002907/0.2628, allocations: 1.777 MB / 0.7888 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002334/0.2631, allocations: 4 kB / 0.7888 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0008989/0.264, allocations: 237.8 kB / 0.7891 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0005896/0.2646, allocations: 199 kB / 0.7892 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007604/0.2654, allocations: 247.3 kB / 0.7895 GB, free: 7.238 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006024/0.266, allocations: 398.5 kB / 0.7899 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004411/0.2665, allocations: 206.5 kB / 0.7901 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002945/0.2668, allocations: 155.4 kB / 0.7902 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003853/0.2672, allocations: 187.3 kB / 0.7904 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.82e-05/0.2673, allocations: 24 kB / 0.7904 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000453/0.2677, allocations: 267.5 kB / 0.7907 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.2679, allocations: 99.7 kB / 0.7908 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002007/0.2681, allocations: 135.3 kB / 0.7909 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0006113/0.2687, allocations: 474.5 kB / 0.7913 GB, free: 5.332 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2687, allocations: 0 / 0.7913 GB, free: 5.332 MB / 0.6075 GB Notification: Performance of FrontEnd: time 4.569e-06/0.2687, allocations: 4 kB / 0.7913 GB, free: 5.328 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.336e-05/0.2687, allocations: 0 / 0.7913 GB, free: 5.328 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.001406/0.2701, allocations: 0.6331 MB / 0.792 GB, free: 4.637 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.2702, allocations: 12.03 kB / 0.792 GB, free: 4.625 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007707/0.271, allocations: 96.45 kB / 0.7921 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003809/0.2714, allocations: 283.7 kB / 0.7923 GB, free: 4.215 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.2714, allocations: 12.81 kB / 0.7923 GB, free: 4.203 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.469e-05/0.2715, allocations: 24.38 kB / 0.7924 GB, free: 4.18 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007816/0.2722, allocations: 414.9 kB / 0.7928 GB, free: 3.746 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.2723, allocations: 4 kB / 0.7928 GB, free: 3.742 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.67e-05/0.2723, allocations: 11.98 kB / 0.7928 GB, free: 3.73 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-05/0.2724, allocations: 24.36 kB / 0.7928 GB, free: 3.703 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008667/0.2732, allocations: 388.8 kB / 0.7932 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001908/0.2752, allocations: 1.615 MB / 0.7948 GB, free: 1.582 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.2763, allocations: 468.1 kB / 0.7952 GB, free: 1.109 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004058/0.2768, allocations: 197.5 kB / 0.7954 GB, free: 0.9102 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001528/0.2769, allocations: 89.09 kB / 0.7955 GB, free: 0.8047 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005403/0.2775, allocations: 263.7 kB / 0.7957 GB, free: 0.5312 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=27): time 2.114e-06/0.2775, allocations: 0 / 0.7957 GB, free: 0.5312 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.001977/0.2795, allocations: 0.7432 MB / 0.7964 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.059e-05/0.2795, allocations: 85.05 kB / 0.7965 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002172/0.2798, allocations: 221 kB / 0.7967 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.707e-05/0.2798, allocations: 33.7 kB / 0.7968 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.2799, allocations: 176.2 kB / 0.7969 GB, free: 15.22 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 7.766e-05/0.28, allocations: 86.75 kB / 0.797 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.2802, allocations: 73.59 kB / 0.7971 GB, free: 15.05 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.2803, allocations: 330.8 kB / 0.7974 GB, free: 14.72 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000434/0.2807, allocations: 177 kB / 0.7976 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004435/0.2812, allocations: 249 kB / 0.7978 GB, free: 14.27 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008872/0.2821, allocations: 450.4 kB / 0.7982 GB, free: 13.8 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.2821, allocations: 4 kB / 0.7982 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00122/0.2833, allocations: 0.5356 MB / 0.7988 GB, free: 13.24 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 5.975e-05/0.2834, allocations: 37.69 kB / 0.7988 GB, free: 13.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.168e-06/0.2834, allocations: 0 / 0.7988 GB, free: 13.2 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002755/0.2837, allocations: 40.83 kB / 0.7988 GB, free: 13.16 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004153/0.2841, allocations: 87.86 kB / 0.7989 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001601/0.2857, allocations: 1.604 MB / 0.8005 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003645/0.2861, allocations: 51.73 kB / 0.8005 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.654e-05/0.2862, allocations: 16.06 kB / 0.8006 GB, free: 11.26 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000487/0.2867, allocations: 272.3 kB / 0.8008 GB, free: 10.99 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004143/0.2871, allocations: 238.3 kB / 0.801 GB, free: 10.72 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007776/0.2879, allocations: 437.5 kB / 0.8015 GB, free: 10.26 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.19e-06/0.2879, allocations: 3.984 kB / 0.8015 GB, free: 10.25 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001098/0.289, allocations: 0.5149 MB / 0.802 GB, free: 9.723 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.118e-05/0.289, allocations: 34.92 kB / 0.802 GB, free: 9.684 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.2891, allocations: 4 kB / 0.802 GB, free: 9.68 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001604/0.2892, allocations: 40.81 kB / 0.802 GB, free: 9.637 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003583/0.2896, allocations: 79.88 kB / 0.8021 GB, free: 9.559 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001422/0.291, allocations: 1.623 MB / 0.8037 GB, free: 7.785 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003124/0.2914, allocations: 35.81 kB / 0.8037 GB, free: 7.75 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.118e-05/0.2914, allocations: 19.98 kB / 0.8038 GB, free: 7.73 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.000186/0.2916, allocations: 200.6 kB / 0.804 GB, free: 7.527 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.322e-05/0.2917, allocations: 23.72 kB / 0.804 GB, free: 7.504 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001059/0.2927, allocations: 469.4 kB / 0.8044 GB, free: 7.039 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.2927, allocations: 4 kB / 0.8044 GB, free: 7.035 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2927, allocations: 0 / 0.8044 GB, free: 7.035 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.2928, allocations: 7.922 kB / 0.8044 GB, free: 7.027 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007117/0.2935, allocations: 0.5662 MB / 0.805 GB, free: 6.398 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.2935, allocations: 96 / 0.805 GB, free: 6.398 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003778/0.2939, allocations: 75.86 kB / 0.8051 GB, free: 6.324 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001559/0.294, allocations: 32.83 kB / 0.8051 GB, free: 6.289 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.197e-05/0.2941, allocations: 8 kB / 0.8051 GB, free: 6.281 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001354/0.2954, allocations: 1.527 MB / 0.8066 GB, free: 4.613 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.2955, allocations: 0 / 0.8066 GB, free: 4.613 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.2965, allocations: 0.5469 MB / 0.8071 GB, free: 4.039 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001632/0.2967, allocations: 124.7 kB / 0.8072 GB, free: 3.898 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.776e-05/0.2968, allocations: 8 kB / 0.8073 GB, free: 3.891 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003088/0.2971, allocations: 39.95 kB / 0.8073 GB, free: 3.852 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.2972, allocations: 31.95 kB / 0.8073 GB, free: 3.82 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.935e-05/0.2973, allocations: 12 kB / 0.8073 GB, free: 3.809 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001941/0.2975, allocations: 172.5 kB / 0.8075 GB, free: 3.637 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.2e-07/0.2975, allocations: 0 / 0.8075 GB, free: 3.637 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.000694/0.2982, allocations: 132 kB / 0.8076 GB, free: 3.508 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.0002291/0.2984, allocations: 121.6 kB / 0.8077 GB, free: 3.383 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002096/0.3005, allocations: 0.9765 MB / 0.8087 GB, free: 2.355 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3005, allocations: 0 / 0.8087 GB, free: 2.355 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0006647/0.3012, allocations: 332 kB / 0.809 GB, free: 2.02 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004706/0.3017, allocations: 54.69 kB / 0.8091 GB, free: 1.969 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/0.303, allocations: 0.6044 MB / 0.8096 GB, free: 1.324 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000356/0.3034, allocations: 0.7839 MB / 0.8104 GB, free: 0.5156 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002857/0.3037, allocations: 94.19 kB / 0.8105 GB, free: 436 kB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.958e-05/0.3038, allocations: 27.44 kB / 0.8105 GB, free: 408 kB / 0.6231 GB Notification: Performance of SimCode: time 2.4e-07/0.3038, allocations: 3.938 kB / 0.8105 GB, free: 404 kB / 0.6231 GB Notification: Performance of Templates: time 0.009517/0.3133, allocations: 4.507 MB / 0.8149 GB, free: 11.91 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)