Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") translateModel(IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001038/0.001038, allocations: 88.78 kB / 16.67 MB, free: 6.594 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.001286/0.001286, allocations: 182.7 kB / 17.58 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7481/0.7481, allocations: 115.5 MB / 408.2 MB, free: 7.199 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003682/0.0003682, allocations: 15.98 kB / 496.5 MB, free: 15.68 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4346/0.435, allocations: 77.51 MB / 0.5606 GB, free: 35.75 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.003817/0.4389, allocations: 2.704 MB / 0.5632 GB, free: 33.86 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003094/0.442, allocations: 1.714 MB / 0.5649 GB, free: 32.7 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002934/0.4423, allocations: 2.562 kB / 0.5649 GB, free: 32.7 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002577/0.4426, allocations: 34.69 kB / 0.5649 GB, free: 32.68 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007837/0.4434, allocations: 179.2 kB / 0.5651 GB, free: 32.59 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009228/0.4444, allocations: 232 kB / 0.5653 GB, free: 32.47 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008662/0.4452, allocations: 0.4993 MB / 0.5658 GB, free: 32.29 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008282/0.4461, allocations: 418.2 kB / 0.5662 GB, free: 32.04 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002666/0.4463, allocations: 125.5 kB / 0.5663 GB, free: 31.99 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003549/0.4467, allocations: 174.3 kB / 0.5665 GB, free: 31.92 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.088e-05/0.4468, allocations: 16.39 kB / 0.5665 GB, free: 31.92 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006201/0.4474, allocations: 305 kB / 0.5668 GB, free: 31.82 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001225/0.4475, allocations: 91.39 kB / 0.5669 GB, free: 31.78 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001508/0.4477, allocations: 154 kB / 0.567 GB, free: 31.67 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005333/0.4482, allocations: 350.4 kB / 0.5674 GB, free: 31.6 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.4482, allocations: 0.5156 kB / 0.5674 GB, free: 31.6 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4482, allocations: 1.312 kB / 0.5674 GB, free: 31.6 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.4483, allocations: 0 / 0.5674 GB, free: 31.6 MB / 446.1 MB 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.001115/0.4494, allocations: 0.6065 MB / 0.568 GB, free: 31.09 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.4494, allocations: 12.91 kB / 0.568 GB, free: 31.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007216/0.4502, allocations: 93.14 kB / 0.5681 GB, free: 31.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003182/0.4505, allocations: 291 kB / 0.5683 GB, free: 30.81 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.695e-05/0.4505, allocations: 14.06 kB / 0.5684 GB, free: 30.8 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.1e-05/0.4506, allocations: 22.38 kB / 0.5684 GB, free: 30.8 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008296/0.4514, allocations: 431.9 kB / 0.5688 GB, free: 30.6 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.4515, allocations: 0 / 0.5688 GB, free: 30.6 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.568e-05/0.4515, allocations: 7.031 kB / 0.5688 GB, free: 30.59 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.978e-05/0.4515, allocations: 26.94 kB / 0.5688 GB, free: 30.59 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009542/0.4525, allocations: 414.9 kB / 0.5692 GB, free: 30.48 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001709/0.4542, allocations: 1.62 MB / 0.5708 GB, free: 29.17 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/0.4555, allocations: 484.4 kB / 0.5713 GB, free: 29.01 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004847/0.456, allocations: 209.2 kB / 0.5715 GB, free: 28.94 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000134/0.4561, allocations: 87.3 kB / 0.5715 GB, free: 28.85 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005972/0.4567, allocations: 275.1 kB / 0.5718 GB, free: 28.73 MB / 446.1 MB Notification: Performance of pre-optimization done (n=27): time 1.904e-06/0.4567, allocations: 1.688 kB / 0.5718 GB, free: 28.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=28): time 0.002002/0.4587, allocations: 0.78 MB / 0.5726 GB, free: 28.39 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.4588, allocations: 86 kB / 0.5727 GB, free: 28.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002324/0.459, allocations: 227.1 kB / 0.5729 GB, free: 28.16 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.314e-05/0.4591, allocations: 33.16 kB / 0.5729 GB, free: 28.12 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.4592, allocations: 172.3 kB / 0.5731 GB, free: 27.97 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.588e-05/0.4593, allocations: 92.56 kB / 0.5732 GB, free: 27.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.7e-05/0.4593, allocations: 30.16 kB / 0.5732 GB, free: 27.88 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.978e-05/0.4594, allocations: 337.8 kB / 0.5735 GB, free: 27.55 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004722/0.4599, allocations: 182.9 kB / 0.5737 GB, free: 27.51 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004818/0.4604, allocations: 261.2 kB / 0.5739 GB, free: 27.37 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009287/0.4613, allocations: 482 kB / 0.5744 GB, free: 27.13 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.4613, allocations: 1.875 kB / 0.5744 GB, free: 27.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001178/0.4625, allocations: 0.5618 MB / 0.5749 GB, free: 26.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.707e-05/0.4626, allocations: 185.2 kB / 0.5751 GB, free: 26.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.4627, allocations: 2.938 kB / 0.5751 GB, free: 26.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002449/0.4629, allocations: 39.86 kB / 0.5752 GB, free: 26.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004193/0.4633, allocations: 91.33 kB / 0.5752 GB, free: 26.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001208/0.4646, allocations: 1.509 MB / 0.5767 GB, free: 25.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003496/0.4649, allocations: 55.36 kB / 0.5768 GB, free: 25.26 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.428e-05/0.465, allocations: 16.7 kB / 0.5768 GB, free: 25.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.983e-06/0.465, allocations: 4.125 kB / 0.5768 GB, free: 25.25 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001122/0.4661, allocations: 0.5016 MB / 0.5773 GB, free: 25.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.4661, allocations: 3.453 kB / 0.5773 GB, free: 25.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001279/0.4663, allocations: 43.14 kB / 0.5773 GB, free: 25.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003776/0.4666, allocations: 89.97 kB / 0.5774 GB, free: 25.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001021/0.4677, allocations: 1.475 MB / 0.5789 GB, free: 23.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003218/0.468, allocations: 56.08 kB / 0.5789 GB, free: 23.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/0.468, allocations: 12.47 kB / 0.5789 GB, free: 23.62 MB / 446.1 MB 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.0002183/0.4683, allocations: 239.4 kB / 0.5791 GB, free: 23.41 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.048e-05/0.4683, allocations: 29.2 kB / 0.5792 GB, free: 23.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001187/0.4695, allocations: 0.4903 MB / 0.5797 GB, free: 23.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.523e-06/0.4695, allocations: 4.188 kB / 0.5797 GB, free: 23.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.4695, allocations: 1.062 kB / 0.5797 GB, free: 23.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.4696, allocations: 2.109 kB / 0.5797 GB, free: 23.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006823/0.4702, allocations: 0.5688 MB / 0.5802 GB, free: 22.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.4703, allocations: 1.5 kB / 0.5802 GB, free: 22.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003993/0.4707, allocations: 81.02 kB / 0.5803 GB, free: 22.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001165/0.4708, allocations: 41.88 kB / 0.5803 GB, free: 22.75 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.647e-05/0.4708, allocations: 11.97 kB / 0.5803 GB, free: 22.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008982/0.4717, allocations: 1.407 MB / 0.5817 GB, free: 21.39 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.4718, allocations: 6.391 kB / 0.5817 GB, free: 21.38 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.4728, allocations: 0.5632 MB / 0.5823 GB, free: 21.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001225/0.473, allocations: 133.6 kB / 0.5824 GB, free: 20.97 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.292e-05/0.473, allocations: 8.156 kB / 0.5824 GB, free: 20.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003222/0.4734, allocations: 40.86 kB / 0.5825 GB, free: 20.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.4735, allocations: 31.17 kB / 0.5825 GB, free: 20.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.724e-05/0.4735, allocations: 12.02 kB / 0.5825 GB, free: 20.95 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001774/0.4737, allocations: 174.1 kB / 0.5827 GB, free: 20.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4737, allocations: 0 / 0.5827 GB, free: 20.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000646/0.4743, allocations: 132.6 kB / 0.5828 GB, free: 20.82 MB / 446.1 MB 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.0001815/0.4745, allocations: 109.3 kB / 0.5829 GB, free: 20.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001956/0.4765, allocations: 1.024 MB / 0.5839 GB, free: 20.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4765, allocations: 0 / 0.5839 GB, free: 20.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005983/0.4771, allocations: 338.3 kB / 0.5842 GB, free: 19.99 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004815/0.4776, allocations: 52.53 kB / 0.5843 GB, free: 19.97 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/0.479, allocations: 0.7714 MB / 0.585 GB, free: 19.49 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.4794, allocations: 0.7871 MB / 0.5858 GB, free: 18.77 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.4795, allocations: 25.94 kB / 0.5858 GB, free: 18.77 MB / 446.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4795, allocations: 1.125 kB / 0.5858 GB, free: 18.77 MB / 446.1 MB Notification: Performance of Templates: time 0.009458/0.489, allocations: 5.088 MB / 0.5908 GB, free: 17.1 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)