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.0008532/0.0008532, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009197/0.0009199, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.487/1.487, allocations: 205.4 MB / 222.1 MB, free: 5.641 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.772/1.772, allocations: 292.7 MB / 0.5499 GB, free: 14.57 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.0005111/0.0005112, allocations: 16.22 kB / 0.6737 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2346, allocations: 116.3 MB / 0.7873 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.004036/0.2387, allocations: 2.622 MB / 0.7899 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002832/0.2415, allocations: 1.654 MB / 0.7915 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002609/0.2418, allocations: 4 kB / 0.7915 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002195/0.2421, allocations: 31.72 kB / 0.7915 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0006855/0.2428, allocations: 163.3 kB / 0.7917 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000689/0.2435, allocations: 187.4 kB / 0.7918 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006083/0.2441, allocations: 418.7 kB / 0.7922 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008467/0.245, allocations: 377.4 kB / 0.7926 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003121/0.2453, allocations: 131.5 kB / 0.7927 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004426/0.2457, allocations: 167.4 kB / 0.7929 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.796e-05/0.2458, allocations: 12 kB / 0.7929 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003698/0.2462, allocations: 143.8 kB / 0.793 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.2463, allocations: 79.77 kB / 0.7931 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.2464, allocations: 73.58 kB / 0.7932 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004827/0.2469, allocations: 339.4 kB / 0.7935 GB, free: 5.516 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.2469, allocations: 3.938 kB / 0.7935 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.126e-06/0.2469, allocations: 4 kB / 0.7935 GB, free: 5.508 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.849e-06/0.2469, allocations: 0 / 0.7935 GB, free: 5.508 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.001269/0.2482, allocations: 0.5979 MB / 0.7941 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.2483, allocations: 12.03 kB / 0.7941 GB, free: 4.84 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007521/0.249, allocations: 103.5 kB / 0.7942 GB, free: 4.738 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004326/0.2495, allocations: 266.4 kB / 0.7945 GB, free: 4.438 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.773e-05/0.2495, allocations: 16.44 kB / 0.7945 GB, free: 4.422 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.544e-05/0.2496, allocations: 24 kB / 0.7945 GB, free: 4.398 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007903/0.2504, allocations: 422.5 kB / 0.7949 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.2504, allocations: 0 / 0.7949 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.646e-05/0.2504, allocations: 12 kB / 0.7949 GB, free: 3.949 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.58e-05/0.2505, allocations: 20.36 kB / 0.7949 GB, free: 3.926 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008271/0.2513, allocations: 424.5 kB / 0.7953 GB, free: 3.512 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001871/0.2532, allocations: 1.626 MB / 0.7969 GB, free: 1.758 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.2543, allocations: 481.2 kB / 0.7974 GB, free: 1.27 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003962/0.2547, allocations: 213.5 kB / 0.7976 GB, free: 1.055 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001458/0.2549, allocations: 89.09 kB / 0.7977 GB, free: 0.9492 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005247/0.2554, allocations: 278.5 kB / 0.7979 GB, free: 0.6602 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=27): time 1.764e-06/0.2554, allocations: 0 / 0.7979 GB, free: 0.6602 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.001821/0.2572, allocations: 0.783 MB / 0.7987 GB, free: 15.85 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.667e-05/0.2573, allocations: 85.05 kB / 0.7988 GB, free: 15.75 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002203/0.2575, allocations: 221 kB / 0.799 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.32e-05/0.2576, allocations: 37.69 kB / 0.799 GB, free: 15.48 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.2577, allocations: 168.2 kB / 0.7992 GB, free: 15.31 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 8.634e-05/0.2578, allocations: 86.75 kB / 0.7993 GB, free: 15.22 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.319e-05/0.2578, allocations: 12 kB / 0.7993 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.2579, allocations: 334.8 kB / 0.7996 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000388/0.2583, allocations: 184.2 kB / 0.7998 GB, free: 14.7 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004177/0.2588, allocations: 253.3 kB / 0.8 GB, free: 14.42 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004321/0.2592, allocations: 237.7 kB / 0.8002 GB, free: 14.18 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.2592, allocations: 0 / 0.8002 GB, free: 14.18 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001085/0.2603, allocations: 0.5526 MB / 0.8008 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001476/0.2605, allocations: 198.5 kB / 0.801 GB, free: 13.38 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.2605, allocations: 0 / 0.801 GB, free: 13.38 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002429/0.2607, allocations: 44.78 kB / 0.801 GB, free: 13.33 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003682/0.2611, allocations: 91.86 kB / 0.8011 GB, free: 13.24 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001415/0.2625, allocations: 1.505 MB / 0.8026 GB, free: 11.6 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000303/0.2629, allocations: 47.8 kB / 0.8026 GB, free: 11.55 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.329e-05/0.2629, allocations: 16 kB / 0.8026 GB, free: 11.54 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 8.756e-06/0.2629, allocations: 4 kB / 0.8026 GB, free: 11.54 MB / 0.6231 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001034/0.264, allocations: 0.4904 MB / 0.8031 GB, free: 11.04 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.264, allocations: 4 kB / 0.8031 GB, free: 11.03 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001238/0.2641, allocations: 48.75 kB / 0.8032 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003195/0.2644, allocations: 84.03 kB / 0.8032 GB, free: 10.9 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001194/0.2657, allocations: 1.485 MB / 0.8047 GB, free: 9.273 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002699/0.2659, allocations: 47.92 kB / 0.8047 GB, free: 9.227 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.923e-05/0.266, allocations: 16 kB / 0.8048 GB, free: 9.211 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 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002216/0.2662, allocations: 237 kB / 0.805 GB, free: 8.969 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.235e-05/0.2663, allocations: 27.7 kB / 0.805 GB, free: 8.941 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009937/0.2673, allocations: 496.5 kB / 0.8055 GB, free: 8.449 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.2673, allocations: 4 kB / 0.8055 GB, free: 8.445 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.2673, allocations: 4.125 kB / 0.8055 GB, free: 8.441 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.2673, allocations: 4 kB / 0.8055 GB, free: 8.438 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006809/0.268, allocations: 0.5661 MB / 0.806 GB, free: 7.809 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.268, allocations: 0 / 0.806 GB, free: 7.809 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003411/0.2684, allocations: 83.86 kB / 0.8061 GB, free: 7.727 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001167/0.2685, allocations: 40.91 kB / 0.8062 GB, free: 7.684 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.918e-05/0.2685, allocations: 8 kB / 0.8062 GB, free: 7.676 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001078/0.2696, allocations: 1.413 MB / 0.8076 GB, free: 6.129 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.2696, allocations: 0 / 0.8076 GB, free: 6.129 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009436/0.2706, allocations: 0.5615 MB / 0.8081 GB, free: 5.539 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001485/0.2707, allocations: 136.7 kB / 0.8082 GB, free: 5.387 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.408e-05/0.2708, allocations: 8 kB / 0.8082 GB, free: 5.379 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002657/0.2711, allocations: 39.95 kB / 0.8083 GB, free: 5.34 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.2712, allocations: 35.98 kB / 0.8083 GB, free: 5.305 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.839e-05/0.2712, allocations: 19.92 kB / 0.8083 GB, free: 5.285 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001856/0.2714, allocations: 176.5 kB / 0.8085 GB, free: 5.109 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2714, allocations: 0 / 0.8085 GB, free: 5.109 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006375/0.2721, allocations: 128 kB / 0.8086 GB, free: 4.984 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002159/0.2723, allocations: 103.2 kB / 0.8087 GB, free: 4.871 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.00183/0.2741, allocations: 1.017 MB / 0.8097 GB, free: 3.805 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.2741, allocations: 0 / 0.8097 GB, free: 3.805 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0005931/0.2747, allocations: 338.8 kB / 0.81 GB, free: 3.461 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004379/0.2752, allocations: 44.41 kB / 0.8101 GB, free: 3.418 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001228/0.2764, allocations: 0.7372 MB / 0.8108 GB, free: 2.652 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000425/0.2769, allocations: 0.78 MB / 0.8116 GB, free: 1.84 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0003065/0.2772, allocations: 102.2 kB / 0.8117 GB, free: 1.734 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.131e-05/0.2773, allocations: 23.44 kB / 0.8117 GB, free: 1.711 MB / 0.6231 GB Notification: Performance of SimCode: time 3.41e-07/0.2773, allocations: 0 / 0.8117 GB, free: 1.711 MB / 0.6231 GB Notification: Performance of Templates: time 0.008519/0.2858, allocations: 4.034 MB / 0.8156 GB, free: 13.7 MB / 0.6387 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: