Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.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.ThreePhasesBalanced.Lines.Examples.ACLine_R,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R",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.001162/0.001162, allocations: 105.4 kB / 16.27 MB, free: 6.41 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.001143/0.001143, allocations: 186.2 kB / 17.2 MB, free: 5.953 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.292/1.292, 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.7298/0.7298, allocations: 122.9 MB / 413.9 MB, free: 15.9 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 59.89 kB / 0.4912 GB, free: 7.367 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3026, allocations: 77.91 MB / 0.5673 GB, free: 32.79 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.007471/0.3101, allocations: 6.791 MB / 0.5739 GB, free: 28.18 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00465/0.3148, allocations: 3.063 MB / 0.5769 GB, free: 26.11 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004061/0.3152, allocations: 28.84 kB / 0.5769 GB, free: 26.1 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002091/0.3173, allocations: 0.9403 MB / 0.5779 GB, free: 25.54 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001163/0.3185, allocations: 0.5061 MB / 0.5784 GB, free: 25.24 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001137/0.3197, allocations: 447.8 kB / 0.5788 GB, free: 25.03 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001223/0.3209, allocations: 1.232 MB / 0.58 GB, free: 24.47 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008797/0.3218, allocations: 0.6647 MB / 0.5806 GB, free: 24.21 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005517/0.3224, allocations: 471 kB / 0.5811 GB, free: 24.01 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005125/0.3229, allocations: 0.5261 MB / 0.5816 GB, free: 23.7 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.787e-05/0.323, allocations: 66.78 kB / 0.5817 GB, free: 23.7 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007095/0.3237, allocations: 377.9 kB / 0.582 GB, free: 23.54 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000233/0.3239, allocations: 300.7 kB / 0.5823 GB, free: 23.35 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003395/0.3243, allocations: 456.3 kB / 0.5827 GB, free: 23.05 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008964/0.3252, allocations: 1.207 MB / 0.5839 GB, free: 22.23 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3252, allocations: 1.469 kB / 0.5839 GB, free: 22.23 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.3252, allocations: 0 / 0.5839 GB, free: 22.23 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.174e-05/0.3252, allocations: 0.5625 kB / 0.5839 GB, free: 22.23 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001472/0.3267, allocations: 1.173 MB / 0.5851 GB, free: 21.32 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.3268, allocations: 9.969 kB / 0.5851 GB, free: 21.32 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001043/0.3269, allocations: 120.8 kB / 0.5852 GB, free: 21.22 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001446/0.3283, allocations: 239.3 kB / 0.5854 GB, free: 21.12 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000679/0.329, allocations: 0.5514 MB / 0.586 GB, free: 20.66 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.346e-05/0.329, allocations: 55.48 kB / 0.586 GB, free: 20.64 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.125e-05/0.3291, allocations: 65.52 kB / 0.5861 GB, free: 20.61 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001232/0.3304, allocations: 1.082 MB / 0.5871 GB, free: 19.84 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/0.3304, allocations: 7.656 kB / 0.5871 GB, free: 19.84 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.919e-05/0.3305, allocations: 33.11 kB / 0.5872 GB, free: 19.82 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001451/0.3306, allocations: 83.94 kB / 0.5872 GB, free: 19.79 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009818/0.3316, allocations: 0.7526 MB / 0.588 GB, free: 19.41 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003758/0.3354, allocations: 5.893 MB / 0.5937 GB, free: 13.96 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008359/0.3363, allocations: 0.5592 MB / 0.5943 GB, free: 13.67 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00037/0.3366, allocations: 324.1 kB / 0.5946 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.158e-05/0.3367, allocations: 9.672 kB / 0.5946 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.3367, allocations: 46.5 kB / 0.5946 GB, free: 13.45 MB / 446.1 MB Notification: Performance of pre-optimization done (n=47): time 2.084e-06/0.3367, allocations: 0 / 0.5946 GB, free: 13.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=48): time 0.003359/0.3401, allocations: 1.986 MB / 0.5966 GB, free: 12.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.506e-05/0.3401, allocations: 63.84 kB / 0.5966 GB, free: 12.02 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004506/0.3406, allocations: 0.5587 MB / 0.5972 GB, free: 11.45 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.888e-05/0.3406, allocations: 33.7 kB / 0.5972 GB, free: 11.41 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001528/0.3408, allocations: 414.9 kB / 0.5976 GB, free: 10.99 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.225e-05/0.3409, allocations: 173.5 kB / 0.5978 GB, free: 10.82 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/0.341, allocations: 130.5 kB / 0.5979 GB, free: 10.69 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.738e-05/0.3411, allocations: 374.7 kB / 0.5983 GB, free: 10.31 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003121/0.3414, allocations: 281.8 kB / 0.5985 GB, free: 10.04 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003898/0.3418, allocations: 493 kB / 0.599 GB, free: 9.461 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007216/0.3425, allocations: 0.8093 MB / 0.5998 GB, free: 8.559 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.3425, allocations: 4 kB / 0.5998 GB, free: 8.555 MB / 446.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001374/0.3439, allocations: 1.087 MB / 0.6009 GB, free: 7.445 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.3439, allocations: 4 kB / 0.6009 GB, free: 7.441 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.344, allocations: 11.94 kB / 0.6009 GB, free: 7.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00069/0.3447, allocations: 283.5 kB / 0.6011 GB, free: 7.141 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000431/0.3451, allocations: 127.8 kB / 0.6013 GB, free: 7.016 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004615/0.3497, allocations: 7.141 MB / 0.6082 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005928/0.3503, allocations: 35.97 kB / 0.6083 GB, free: 15.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.658e-05/0.3504, allocations: 32.05 kB / 0.6083 GB, free: 15.24 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,6,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003276/0.3507, allocations: 257.5 kB / 0.6086 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.3508, allocations: 79.12 kB / 0.6086 GB, free: 14.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001428/0.3523, allocations: 0.8848 MB / 0.6095 GB, free: 14 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.3523, allocations: 4 kB / 0.6095 GB, free: 13.99 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.3523, allocations: 4 kB / 0.6095 GB, free: 13.99 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.3523, allocations: 3.984 kB / 0.6095 GB, free: 13.98 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002421/0.3547, allocations: 1.717 MB / 0.6112 GB, free: 12.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/0.3548, allocations: 7.938 kB / 0.6112 GB, free: 12.17 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000256/0.355, allocations: 63.83 kB / 0.6113 GB, free: 12.11 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006915/0.3557, allocations: 271.3 kB / 0.6115 GB, free: 11.83 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.107e-05/0.3558, allocations: 12 kB / 0.6115 GB, free: 11.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005785/0.3615, allocations: 7.114 MB / 0.6185 GB, free: 4.145 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.3616, allocations: 7.969 kB / 0.6185 GB, free: 4.137 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.3631, allocations: 0.9916 MB / 0.6194 GB, free: 3.098 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003498/0.3634, allocations: 192.2 kB / 0.6196 GB, free: 2.891 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001483/0.3636, allocations: 15.94 kB / 0.6196 GB, free: 2.875 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004302/0.364, allocations: 23.97 kB / 0.6197 GB, free: 2.852 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.3641, allocations: 47.88 kB / 0.6197 GB, free: 2.805 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.347e-05/0.3642, allocations: 20 kB / 0.6197 GB, free: 2.785 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0004314/0.3646, allocations: 387.1 kB / 0.6201 GB, free: 2.41 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3646, allocations: 0 / 0.6201 GB, free: 2.41 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0008228/0.3655, allocations: 228 kB / 0.6203 GB, free: 2.188 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001628/0.3671, allocations: 1.54 MB / 0.6218 GB, free: 0.582 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001937/0.369, allocations: 1.346 MB / 0.6231 GB, free: 15.18 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3691, allocations: 0 / 0.6231 GB, free: 15.18 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001156/0.3702, allocations: 0.8815 MB / 0.624 GB, free: 14.25 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001181/0.3714, allocations: 218.6 kB / 0.6242 GB, free: 14.05 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008048/0.3795, allocations: 6.582 MB / 0.6306 GB, free: 7.141 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006017/0.3801, allocations: 1.009 MB / 0.6316 GB, free: 6.105 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004276/0.3805, allocations: 126 kB / 0.6317 GB, free: 5.98 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002929/0.3808, allocations: 251.4 kB / 0.632 GB, free: 5.734 MB / 478.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3808, allocations: 0 / 0.632 GB, free: 5.734 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06819/0.449, allocations: 17.22 MB / 0.6488 GB, free: 4.844 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.873/9.322, allocations: 19 kB / 0.6488 GB, free: 4.828 MB / 494.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_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_ThreePhasesBalanced_Lines_Examples_ACLine_R.fmu > IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1)