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.001326/0.001326, allocations: 106.7 kB / 15.98 MB, free: 6.355 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.001554/0.001554, allocations: 190.7 kB / 16.91 MB, free: 6.195 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.387/1.387, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.762/0.762, allocations: 122.8 MB / 413.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 59.91 kB / 0.4906 GB, free: 7.781 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3843/0.3857, allocations: 77.91 MB / 0.5667 GB, free: 32.79 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.004564/0.3903, allocations: 3.067 MB / 0.5697 GB, free: 30.71 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002925/0.3932, allocations: 1.873 MB / 0.5715 GB, free: 29.44 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.3934, allocations: 7.312 kB / 0.5715 GB, free: 29.43 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008472/0.3943, allocations: 232.1 kB / 0.5717 GB, free: 29.3 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005308/0.3949, allocations: 196.9 kB / 0.5719 GB, free: 29.2 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006604/0.3955, allocations: 224.6 kB / 0.5721 GB, free: 29.09 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004343/0.396, allocations: 394.3 kB / 0.5725 GB, free: 28.91 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000438/0.3964, allocations: 232.3 kB / 0.5727 GB, free: 28.82 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002647/0.3967, allocations: 166.4 kB / 0.5729 GB, free: 28.75 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003262/0.397, allocations: 186.5 kB / 0.5731 GB, free: 28.67 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.24e-05/0.3971, allocations: 26.91 kB / 0.5731 GB, free: 28.67 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005287/0.3976, allocations: 284.8 kB / 0.5734 GB, free: 28.58 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.3978, allocations: 96.97 kB / 0.5735 GB, free: 28.54 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001702/0.3979, allocations: 143.1 kB / 0.5736 GB, free: 28.45 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000746/0.3987, allocations: 0.5011 MB / 0.5741 GB, free: 28.28 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3987, allocations: 0.8125 kB / 0.5741 GB, free: 28.28 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3987, allocations: 0 / 0.5741 GB, free: 28.28 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.635e-06/0.3987, allocations: 0 / 0.5741 GB, free: 28.28 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.001479/0.4002, allocations: 0.6373 MB / 0.5747 GB, free: 27.75 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/0.4003, allocations: 10.41 kB / 0.5747 GB, free: 27.75 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001099/0.4014, allocations: 122.2 kB / 0.5748 GB, free: 27.73 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004052/0.4018, allocations: 278.7 kB / 0.5751 GB, free: 27.48 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.388e-05/0.4018, allocations: 16.92 kB / 0.5751 GB, free: 27.47 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.331e-05/0.4019, allocations: 26.75 kB / 0.5752 GB, free: 27.46 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.403, allocations: 430.6 kB / 0.5756 GB, free: 27.26 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.403, allocations: 5.125 kB / 0.5756 GB, free: 27.25 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.344e-05/0.403, allocations: 7.297 kB / 0.5756 GB, free: 27.25 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.166e-05/0.4031, allocations: 25.91 kB / 0.5756 GB, free: 27.24 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.4042, allocations: 402 kB / 0.576 GB, free: 27.13 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00178/0.4059, allocations: 1.623 MB / 0.5776 GB, free: 25.83 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001376/0.4073, allocations: 477.3 kB / 0.578 GB, free: 25.66 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005285/0.4079, allocations: 202.3 kB / 0.5782 GB, free: 25.59 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000154/0.408, allocations: 94.73 kB / 0.5783 GB, free: 25.49 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006169/0.4087, allocations: 271.7 kB / 0.5786 GB, free: 25.38 MB / 446.1 MB Notification: Performance of pre-optimization done (n=27): time 1.834e-06/0.4087, allocations: 0 / 0.5786 GB, free: 25.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=28): time 0.001988/0.4107, allocations: 0.7638 MB / 0.5793 GB, free: 25 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.471e-05/0.4107, allocations: 81.23 kB / 0.5794 GB, free: 24.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000188/0.4109, allocations: 227 kB / 0.5796 GB, free: 24.74 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.555e-05/0.411, allocations: 33.33 kB / 0.5796 GB, free: 24.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.65e-05/0.411, allocations: 166.5 kB / 0.5798 GB, free: 24.55 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.624e-05/0.4111, allocations: 99.02 kB / 0.5799 GB, free: 24.47 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.4112, allocations: 63.81 kB / 0.58 GB, free: 24.43 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.693e-05/0.4113, allocations: 333.7 kB / 0.5803 GB, free: 24.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004303/0.4117, allocations: 184.2 kB / 0.5804 GB, free: 24 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004813/0.4122, allocations: 252.7 kB / 0.5807 GB, free: 23.83 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009145/0.4132, allocations: 467.2 kB / 0.5811 GB, free: 23.53 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.4132, allocations: 1.25 kB / 0.5811 GB, free: 23.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001267/0.4145, allocations: 0.5446 MB / 0.5817 GB, free: 23.23 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.024e-05/0.4145, allocations: 32.61 kB / 0.5817 GB, free: 23.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.4145, allocations: 4.312 kB / 0.5817 GB, free: 23.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002582/0.4148, allocations: 53.41 kB / 0.5818 GB, free: 23.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004492/0.4152, allocations: 83.39 kB / 0.5818 GB, free: 23.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001187/0.4164, allocations: 1.609 MB / 0.5834 GB, free: 21.56 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000389/0.4168, allocations: 47.02 kB / 0.5834 GB, free: 21.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.733e-05/0.4169, allocations: 14.62 kB / 0.5835 GB, free: 21.53 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005023/0.4174, allocations: 282.9 kB / 0.5837 GB, free: 21.35 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004381/0.4178, allocations: 242.9 kB / 0.584 GB, free: 21.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007763/0.4186, allocations: 446.6 kB / 0.5844 GB, free: 20.88 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.016e-06/0.4187, allocations: 1.625 kB / 0.5844 GB, free: 20.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001138/0.4198, allocations: 0.5207 MB / 0.5849 GB, free: 20.59 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.4198, allocations: 37.58 kB / 0.5849 GB, free: 20.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-06/0.4198, allocations: 6.5 kB / 0.5849 GB, free: 20.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000146/0.42, allocations: 49.19 kB / 0.585 GB, free: 20.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000393/0.4204, allocations: 84.14 kB / 0.5851 GB, free: 20.49 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001048/0.4215, allocations: 1.614 MB / 0.5866 GB, free: 18.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003714/0.4218, allocations: 51.89 kB / 0.5867 GB, free: 18.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.213e-05/0.4219, allocations: 14.88 kB / 0.5867 GB, free: 18.86 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.0001363/0.422, allocations: 207 kB / 0.5869 GB, free: 18.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.681e-05/0.4221, allocations: 23.97 kB / 0.5869 GB, free: 18.64 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001104/0.4232, allocations: 472 kB / 0.5874 GB, free: 18.38 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.4232, allocations: 4.125 kB / 0.5874 GB, free: 18.38 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.4232, allocations: 9.359 kB / 0.5874 GB, free: 18.37 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.4232, allocations: 0 / 0.5874 GB, free: 18.37 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005599/0.4238, allocations: 0.569 MB / 0.5879 GB, free: 17.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.4238, allocations: 0 / 0.5879 GB, free: 17.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003786/0.4242, allocations: 72.86 kB / 0.588 GB, free: 17.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001157/0.4243, allocations: 42.83 kB / 0.5881 GB, free: 17.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.762e-05/0.4244, allocations: 6.812 kB / 0.5881 GB, free: 17.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008296/0.4252, allocations: 1.521 MB / 0.5895 GB, free: 16.27 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.4252, allocations: 1.5 kB / 0.5895 GB, free: 16.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009358/0.4262, allocations: 0.5383 MB / 0.5901 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.4263, allocations: 134.6 kB / 0.5902 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.151e-05/0.4263, allocations: 11.53 kB / 0.5902 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003502/0.4267, allocations: 38.67 kB / 0.5903 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.4268, allocations: 27.67 kB / 0.5903 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.779e-05/0.4268, allocations: 11.97 kB / 0.5903 GB, free: 15.73 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000195/0.427, allocations: 180.3 kB / 0.5905 GB, free: 15.61 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4271, allocations: 0 / 0.5905 GB, free: 15.61 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006698/0.4277, allocations: 130.8 kB / 0.5906 GB, free: 15.6 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.0001755/0.4279, allocations: 119.5 kB / 0.5907 GB, free: 15.49 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002038/0.43, allocations: 1.027 MB / 0.5917 GB, free: 14.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.43, allocations: 0.9688 kB / 0.5917 GB, free: 14.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005749/0.4306, allocations: 326.2 kB / 0.592 GB, free: 14.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004602/0.431, allocations: 50.3 kB / 0.5921 GB, free: 14.57 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.4321, allocations: 0.7176 MB / 0.5928 GB, free: 14.05 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002105/0.4324, allocations: 0.7802 MB / 0.5935 GB, free: 13.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003501/0.4327, allocations: 102.7 kB / 0.5936 GB, free: 13.26 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.4328, allocations: 32.55 kB / 0.5937 GB, free: 13.24 MB / 446.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4328, allocations: 0 / 0.5937 GB, free: 13.24 MB / 446.1 MB Notification: Performance of Templates: time 0.007798/0.4406, allocations: 4.679 MB / 0.5982 GB, free: 9.516 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)