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.0008098/0.00081, allocations: 99.05 kB / 16.02 MB, free: 80 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.0009267/0.0009268, allocations: 182.4 kB / 16.92 MB, free: 6.711 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.398/1.398, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7254/0.7254, allocations: 123 MB / 415.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003166/0.0003167, allocations: 8 kB / 0.4933 GB, free: 13.96 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4535/0.4538, allocations: 79.29 MB / 0.5708 GB, free: 9.902 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.004733/0.4586, allocations: 2.703 MB / 0.5734 GB, free: 9.02 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003308/0.4619, allocations: 1.873 MB / 0.5752 GB, free: 7.75 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002293/0.4622, allocations: 10.25 kB / 0.5752 GB, free: 7.742 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002018/0.4624, allocations: 34.92 kB / 0.5753 GB, free: 7.723 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006704/0.4631, allocations: 193.5 kB / 0.5754 GB, free: 7.621 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000787/0.4639, allocations: 239.8 kB / 0.5757 GB, free: 7.496 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006809/0.4646, allocations: 0.4937 MB / 0.5762 GB, free: 7.316 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008999/0.4655, allocations: 412.8 kB / 0.5766 GB, free: 7.066 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002586/0.4658, allocations: 120.8 kB / 0.5767 GB, free: 7.023 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003487/0.4661, allocations: 182 kB / 0.5768 GB, free: 6.949 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.875e-05/0.4662, allocations: 13.09 kB / 0.5769 GB, free: 6.949 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007196/0.4669, allocations: 337 kB / 0.5772 GB, free: 6.836 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001174/0.467, allocations: 84.16 kB / 0.5773 GB, free: 6.805 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.4672, allocations: 149.1 kB / 0.5774 GB, free: 6.703 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006372/0.4678, allocations: 490.1 kB / 0.5779 GB, free: 6.562 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.4678, allocations: 1.594 kB / 0.5779 GB, free: 6.562 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.4678, allocations: 3.938 kB / 0.5779 GB, free: 6.559 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.4679, allocations: 0 / 0.5779 GB, free: 6.559 MB / 430.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.001122/0.469, allocations: 0.6055 MB / 0.5785 GB, free: 6.051 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.469, allocations: 9.484 kB / 0.5785 GB, free: 6.051 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001013/0.4701, allocations: 129.5 kB / 0.5786 GB, free: 6.02 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003208/0.4704, allocations: 277.7 kB / 0.5789 GB, free: 5.77 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.766e-05/0.4704, allocations: 16.61 kB / 0.5789 GB, free: 5.762 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.612e-05/0.4705, allocations: 19.73 kB / 0.5789 GB, free: 5.758 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009199/0.4714, allocations: 442.5 kB / 0.5793 GB, free: 5.551 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/0.4715, allocations: 1.344 kB / 0.5793 GB, free: 5.551 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.032e-05/0.4715, allocations: 10.45 kB / 0.5793 GB, free: 5.543 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.532e-05/0.4716, allocations: 25.62 kB / 0.5794 GB, free: 5.535 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00112/0.4727, allocations: 431.7 kB / 0.5798 GB, free: 5.418 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001842/0.4745, allocations: 1.628 MB / 0.5814 GB, free: 4.105 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001434/0.476, allocations: 0.4892 MB / 0.5818 GB, free: 3.934 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005153/0.4765, allocations: 216.4 kB / 0.582 GB, free: 3.859 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001477/0.4767, allocations: 91.41 kB / 0.5821 GB, free: 3.762 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006686/0.4774, allocations: 289.3 kB / 0.5824 GB, free: 3.637 MB / 430.1 MB Notification: Performance of pre-optimization done (n=27): time 2.033e-06/0.4774, allocations: 0 / 0.5824 GB, free: 3.637 MB / 430.1 MB Notification: Performance of matching and sorting (n=28): time 0.002263/0.4796, allocations: 0.7998 MB / 0.5832 GB, free: 3.289 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.064e-05/0.4797, allocations: 81.41 kB / 0.5833 GB, free: 3.195 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002352/0.4799, allocations: 235.9 kB / 0.5835 GB, free: 3.043 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.722e-05/0.48, allocations: 31.86 kB / 0.5835 GB, free: 3.008 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.264e-05/0.4801, allocations: 160.3 kB / 0.5837 GB, free: 2.871 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.851e-05/0.4801, allocations: 96.42 kB / 0.5838 GB, free: 2.797 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.578e-05/0.4802, allocations: 33.44 kB / 0.5838 GB, free: 2.77 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.465e-05/0.4803, allocations: 332.6 kB / 0.5841 GB, free: 2.449 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004927/0.4808, allocations: 196.7 kB / 0.5843 GB, free: 2.391 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005103/0.4813, allocations: 264.9 kB / 0.5846 GB, free: 2.25 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/0.4824, allocations: 496.4 kB / 0.585 GB, free: 2 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.4824, allocations: 1.656 kB / 0.585 GB, free: 2 MB / 430.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001382/0.4838, allocations: 0.5759 MB / 0.5856 GB, free: 1.762 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.095e-05/0.4839, allocations: 178.5 kB / 0.5858 GB, free: 1.559 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.4839, allocations: 2.234 kB / 0.5858 GB, free: 1.559 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000254/0.4841, allocations: 52.59 kB / 0.5858 GB, free: 1.535 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005144/0.4847, allocations: 88.22 kB / 0.5859 GB, free: 1.531 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001366/0.486, allocations: 1.505 MB / 0.5874 GB, free: 120 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005117/0.4866, allocations: 53.95 kB / 0.5874 GB, free: 108 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.768e-05/0.4866, allocations: 12.19 kB / 0.5874 GB, free: 108 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.4866, allocations: 8.75 kB / 0.5874 GB, free: 104 kB / 430.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00141/0.4881, allocations: 0.5086 MB / 0.5879 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.4881, allocations: 7.078 kB / 0.5879 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001565/0.4882, allocations: 38.75 kB / 0.588 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004239/0.4887, allocations: 92.59 kB / 0.5881 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001353/0.49, allocations: 1.488 MB / 0.5895 GB, free: 14.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000388/0.4904, allocations: 54.11 kB / 0.5896 GB, free: 14.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.872e-05/0.4905, allocations: 17.34 kB / 0.5896 GB, free: 14.46 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.0002941/0.4908, allocations: 238.8 kB / 0.5898 GB, free: 14.24 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.958e-05/0.4909, allocations: 28.41 kB / 0.5898 GB, free: 14.22 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00136/0.4922, allocations: 0.493 MB / 0.5903 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.4923, allocations: 2.594 kB / 0.5903 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.4923, allocations: 5.812 kB / 0.5903 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.208e-06/0.4923, allocations: 3.047 kB / 0.5903 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000878/0.4932, allocations: 0.5709 MB / 0.5909 GB, free: 13.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.4932, allocations: 1 kB / 0.5909 GB, free: 13.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004378/0.4936, allocations: 79.55 kB / 0.591 GB, free: 13.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001474/0.4938, allocations: 42.97 kB / 0.591 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.984e-05/0.4938, allocations: 7.391 kB / 0.591 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001295/0.4951, allocations: 1.417 MB / 0.5924 GB, free: 12.21 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.4951, allocations: 5.312 kB / 0.5924 GB, free: 12.21 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001146/0.4963, allocations: 0.5663 MB / 0.593 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001461/0.4965, allocations: 134.9 kB / 0.5931 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.767e-05/0.4965, allocations: 7.25 kB / 0.5931 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003539/0.4969, allocations: 50.84 kB / 0.5931 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.497, allocations: 32.95 kB / 0.5932 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.606e-05/0.497, allocations: 10.56 kB / 0.5932 GB, free: 11.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002245/0.4973, allocations: 180.3 kB / 0.5934 GB, free: 11.66 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4973, allocations: 0 / 0.5934 GB, free: 11.66 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006636/0.4979, allocations: 131 kB / 0.5935 GB, free: 11.64 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.0002/0.4981, allocations: 124.6 kB / 0.5936 GB, free: 11.53 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002254/0.5004, allocations: 1.023 MB / 0.5946 GB, free: 10.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.5004, allocations: 0 / 0.5946 GB, free: 10.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006852/0.5011, allocations: 339 kB / 0.5949 GB, free: 10.81 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005023/0.5016, allocations: 51.25 kB / 0.595 GB, free: 10.79 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.503, allocations: 0.7244 MB / 0.5957 GB, free: 10.35 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004365/0.5035, allocations: 0.7868 MB / 0.5964 GB, free: 9.637 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000367/0.5039, allocations: 99.59 kB / 0.5965 GB, free: 9.621 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.504, allocations: 29.22 kB / 0.5966 GB, free: 9.609 MB / 446.1 MB Notification: Performance of SimCode: time 7.62e-07/0.504, allocations: 5.188 kB / 0.5966 GB, free: 9.605 MB / 446.1 MB Notification: Performance of Templates: time 0.01003/0.514, allocations: 4.396 MB / 0.6009 GB, free: 7.953 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)