Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.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: "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 100.4 kB / 16.27 MB, free: 5.93 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.001117/0.001116, allocations: 188.5 kB / 17.2 MB, free: 5.574 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.288/1.288, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7313/0.7313, allocations: 122.8 MB / 413.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 55.91 kB / 0.4912 GB, free: 7.348 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.3329, allocations: 77.91 MB / 0.5673 GB, free: 32.82 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.003757/0.3367, allocations: 2.886 MB / 0.5701 GB, free: 30.86 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002309/0.339, allocations: 1.804 MB / 0.5719 GB, free: 29.64 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.3391, allocations: 4.031 kB / 0.5719 GB, free: 29.64 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007212/0.3399, allocations: 228 kB / 0.5721 GB, free: 29.51 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004147/0.3403, allocations: 210.3 kB / 0.5723 GB, free: 29.39 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004857/0.3408, allocations: 233.8 kB / 0.5725 GB, free: 29.28 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002805/0.3411, allocations: 307.1 kB / 0.5728 GB, free: 29.15 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003082/0.3414, allocations: 178.2 kB / 0.573 GB, free: 29.08 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001689/0.3416, allocations: 118.1 kB / 0.5731 GB, free: 29.04 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002464/0.3418, allocations: 151.9 kB / 0.5732 GB, free: 28.97 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.73e-05/0.3419, allocations: 20.81 kB / 0.5732 GB, free: 28.97 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000428/0.3423, allocations: 282.6 kB / 0.5735 GB, free: 28.88 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.316e-05/0.3424, allocations: 92.62 kB / 0.5736 GB, free: 28.83 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001266/0.3425, allocations: 116.8 kB / 0.5737 GB, free: 28.76 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005095/0.3431, allocations: 430.9 kB / 0.5741 GB, free: 28.62 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3431, allocations: 2.094 kB / 0.5741 GB, free: 28.62 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.103e-06/0.3431, allocations: 0 / 0.5741 GB, free: 28.62 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.3431, allocations: 0 / 0.5741 GB, free: 28.62 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007177/0.3438, allocations: 0.5473 MB / 0.5747 GB, free: 28.14 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.3439, allocations: 11.8 kB / 0.5747 GB, free: 28.14 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.43e-05/0.3439, allocations: 58.73 kB / 0.5747 GB, free: 28.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008995/0.3448, allocations: 115.1 kB / 0.5748 GB, free: 28.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002585/0.3451, allocations: 260 kB / 0.5751 GB, free: 27.82 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.3451, allocations: 13.25 kB / 0.5751 GB, free: 27.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.485e-05/0.3452, allocations: 21.27 kB / 0.5751 GB, free: 27.81 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006211/0.3458, allocations: 394.5 kB / 0.5755 GB, free: 27.61 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.3458, allocations: 9.516 kB / 0.5755 GB, free: 27.6 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.093e-05/0.3459, allocations: 8.281 kB / 0.5755 GB, free: 27.59 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.325e-05/0.3459, allocations: 25.67 kB / 0.5755 GB, free: 27.59 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006839/0.3466, allocations: 338 kB / 0.5759 GB, free: 27.49 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.3482, allocations: 1.736 MB / 0.5775 GB, free: 26.04 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006654/0.3489, allocations: 329.6 kB / 0.5779 GB, free: 25.91 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000255/0.3492, allocations: 153.1 kB / 0.578 GB, free: 25.85 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000117/0.3493, allocations: 85.38 kB / 0.5781 GB, free: 25.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.511e-05/0.3493, allocations: 41.66 kB / 0.5781 GB, free: 25.71 MB / 446.1 MB Notification: Performance of pre-optimization done (n=20): time 1.412e-06/0.3493, allocations: 0 / 0.5781 GB, free: 25.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=21): time 0.001309/0.3507, allocations: 0.6014 MB / 0.5787 GB, free: 25.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.42e-05/0.3507, allocations: 79.23 kB / 0.5788 GB, free: 25.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002228/0.3509, allocations: 215 kB / 0.579 GB, free: 25.17 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.351, allocations: 31.08 kB / 0.579 GB, free: 25.13 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.39e-05/0.351, allocations: 162.3 kB / 0.5792 GB, free: 24.99 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.283e-05/0.3511, allocations: 70.97 kB / 0.5792 GB, free: 24.94 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.638e-05/0.3512, allocations: 63.98 kB / 0.5793 GB, free: 24.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.39e-05/0.3512, allocations: 331.1 kB / 0.5796 GB, free: 24.58 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002977/0.3515, allocations: 142.9 kB / 0.5798 GB, free: 24.53 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003152/0.3519, allocations: 217.2 kB / 0.58 GB, free: 24.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005554/0.3524, allocations: 374.6 kB / 0.5803 GB, free: 24.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.3524, allocations: 4 kB / 0.5803 GB, free: 24.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000847/0.3533, allocations: 440.7 kB / 0.5808 GB, free: 24 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.3533, allocations: 7.766 kB / 0.5808 GB, free: 24 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.3533, allocations: 2.75 kB / 0.5808 GB, free: 24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002184/0.3536, allocations: 41.39 kB / 0.5808 GB, free: 23.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003386/0.3539, allocations: 74.89 kB / 0.5809 GB, free: 23.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001054/0.355, allocations: 1.614 MB / 0.5824 GB, free: 22.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000313/0.3553, allocations: 36.84 kB / 0.5825 GB, free: 22.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.547e-05/0.3553, allocations: 13.38 kB / 0.5825 GB, free: 22.36 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003278/0.3557, allocations: 242.6 kB / 0.5827 GB, free: 22.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002736/0.356, allocations: 221.5 kB / 0.5829 GB, free: 22.02 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000488/0.3565, allocations: 355.4 kB / 0.5833 GB, free: 21.78 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.124e-06/0.3565, allocations: 1.156 kB / 0.5833 GB, free: 21.78 MB / 446.1 MB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0007622/0.3572, allocations: 420.9 kB / 0.5837 GB, free: 21.55 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/0.3573, allocations: 5.812 kB / 0.5837 GB, free: 21.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.3573, allocations: 2.375 kB / 0.5837 GB, free: 21.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001287/0.3574, allocations: 43.77 kB / 0.5837 GB, free: 21.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002771/0.3577, allocations: 70.06 kB / 0.5838 GB, free: 21.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009174/0.3586, allocations: 1.613 MB / 0.5854 GB, free: 19.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002907/0.3589, allocations: 37.5 kB / 0.5854 GB, free: 19.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.353e-05/0.3589, allocations: 13.94 kB / 0.5854 GB, free: 19.91 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * 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 9.186e-05/0.359, allocations: 194.3 kB / 0.5856 GB, free: 19.71 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.067e-05/0.3591, allocations: 28.58 kB / 0.5856 GB, free: 19.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006077/0.3597, allocations: 353.7 kB / 0.586 GB, free: 19.49 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.3597, allocations: 2.688 kB / 0.586 GB, free: 19.49 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.3598, allocations: 1.312 kB / 0.586 GB, free: 19.49 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.3598, allocations: 4.969 kB / 0.586 GB, free: 19.48 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001229/0.361, allocations: 0.9634 MB / 0.5869 GB, free: 18.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.361, allocations: 6.625 kB / 0.5869 GB, free: 18.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002173/0.3612, allocations: 50.8 kB / 0.587 GB, free: 18.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000108/0.3614, allocations: 43.05 kB / 0.587 GB, free: 18.67 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.3614, allocations: 12.08 kB / 0.587 GB, free: 18.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007883/0.3622, allocations: 1.509 MB / 0.5885 GB, free: 17.15 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3622, allocations: 1.344 kB / 0.5885 GB, free: 17.15 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006101/0.3628, allocations: 0.534 MB / 0.589 GB, free: 16.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.934e-05/0.3629, allocations: 130.1 kB / 0.5891 GB, free: 16.61 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.784e-05/0.363, allocations: 7.719 kB / 0.5892 GB, free: 16.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002606/0.3632, allocations: 23.38 kB / 0.5892 GB, free: 16.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.881e-05/0.3633, allocations: 22.59 kB / 0.5892 GB, free: 16.58 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.3633, allocations: 5.25 kB / 0.5892 GB, free: 16.58 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001591/0.3635, allocations: 166.8 kB / 0.5894 GB, free: 16.46 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3635, allocations: 0 / 0.5894 GB, free: 16.46 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006298/0.3641, allocations: 112.8 kB / 0.5895 GB, free: 16.44 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0007769/0.3649, allocations: 1.082 MB / 0.5905 GB, free: 15.48 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0013/0.3662, allocations: 0.7711 MB / 0.5913 GB, free: 14.99 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.3662, allocations: 5.562 kB / 0.5913 GB, free: 14.99 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003569/0.3666, allocations: 266.1 kB / 0.5915 GB, free: 14.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004591/0.3671, allocations: 35.55 kB / 0.5916 GB, free: 14.79 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003402/0.3705, allocations: 3.012 MB / 0.5945 GB, free: 12.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002132/0.3707, allocations: 0.7701 MB / 0.5953 GB, free: 11.65 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000285/0.371, allocations: 92.08 kB / 0.5954 GB, free: 11.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.3711, allocations: 74.52 kB / 0.5954 GB, free: 11.55 MB / 446.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3711, allocations: 0 / 0.5954 GB, free: 11.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02332/0.3945, allocations: 5.689 MB / 0.601 GB, free: 7.035 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.68/9.074, allocations: 11.19 kB / 0.601 GB, free: 7.027 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)