Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.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.Lines.Examples.ACSimpleGrid,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid",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.001055/0.001058, allocations: 99.45 kB / 16.26 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.001047/0.001047, allocations: 190.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.265/1.265, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7196/0.7196, allocations: 122.9 MB / 413.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.91 kB / 0.4912 GB, free: 7.316 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.2879, allocations: 77.92 MB / 0.5673 GB, free: 32.88 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.00497/0.2929, allocations: 4.366 MB / 0.5716 GB, free: 29.9 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003833/0.2968, allocations: 3.266 MB / 0.5747 GB, free: 27.68 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002769/0.2971, allocations: 12.72 kB / 0.5748 GB, free: 27.68 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001375/0.2985, allocations: 0.5 MB / 0.5752 GB, free: 27.39 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009322/0.2994, allocations: 393 kB / 0.5756 GB, free: 27.17 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006252/0.3001, allocations: 257.6 kB / 0.5759 GB, free: 27.04 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007149/0.3008, allocations: 0.5891 MB / 0.5764 GB, free: 26.78 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006283/0.3014, allocations: 0.5264 MB / 0.577 GB, free: 26.62 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004645/0.3019, allocations: 282.4 kB / 0.5772 GB, free: 26.5 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004502/0.3024, allocations: 273.8 kB / 0.5775 GB, free: 26.39 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.64e-05/0.3025, allocations: 40.22 kB / 0.5775 GB, free: 26.39 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005834/0.3031, allocations: 297 kB / 0.5778 GB, free: 26.3 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000179/0.3032, allocations: 161.8 kB / 0.578 GB, free: 26.23 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002679/0.3035, allocations: 232.3 kB / 0.5782 GB, free: 26.09 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009968/0.3045, allocations: 0.7807 MB / 0.5789 GB, free: 25.84 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.3045, allocations: 0 / 0.5789 GB, free: 25.84 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3045, allocations: 1.312 kB / 0.5789 GB, free: 25.84 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.763e-05/0.3046, allocations: 0 / 0.5789 GB, free: 25.84 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001316/0.3059, allocations: 0.7719 MB / 0.5797 GB, free: 25.25 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.3059, allocations: 10.97 kB / 0.5797 GB, free: 25.25 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.672e-05/0.306, allocations: 67.45 kB / 0.5798 GB, free: 25.2 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002876/0.3089, allocations: 0.6822 MB / 0.5804 GB, free: 24.98 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000605/0.3095, allocations: 448.6 kB / 0.5809 GB, free: 24.61 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.3096, allocations: 20.75 kB / 0.5809 GB, free: 24.6 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.108e-05/0.3096, allocations: 31.88 kB / 0.5809 GB, free: 24.59 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001484/0.3111, allocations: 0.7899 MB / 0.5817 GB, free: 24.11 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.834e-05/0.3112, allocations: 0.5312 kB / 0.5817 GB, free: 24.11 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.154e-05/0.3112, allocations: 19.59 kB / 0.5817 GB, free: 24.09 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001088/0.3113, allocations: 42.19 kB / 0.5818 GB, free: 24.08 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001916/0.3133, allocations: 0.8727 MB / 0.5826 GB, free: 23.65 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003325/0.3166, allocations: 2.821 MB / 0.5854 GB, free: 21.21 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001609/0.3182, allocations: 0.5112 MB / 0.5859 GB, free: 20.95 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006651/0.3189, allocations: 261.5 kB / 0.5861 GB, free: 20.82 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.551e-05/0.319, allocations: 87.44 kB / 0.5862 GB, free: 20.72 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.998e-05/0.319, allocations: 33.19 kB / 0.5862 GB, free: 20.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=16): time 1.683e-06/0.319, allocations: 2.188 kB / 0.5862 GB, free: 20.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=24): time 0.01158/0.3306, allocations: 3.062 MB / 0.5892 GB, free: 19.08 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.819e-05/0.3307, allocations: 62.91 kB / 0.5893 GB, free: 19.01 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004233/0.3311, allocations: 404.5 kB / 0.5897 GB, free: 18.75 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.852e-05/0.3311, allocations: 31.02 kB / 0.5897 GB, free: 18.72 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.3313, allocations: 233.1 kB / 0.5899 GB, free: 18.51 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.669e-05/0.3313, allocations: 80.91 kB / 0.59 GB, free: 18.44 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/0.3315, allocations: 76.11 kB / 0.5901 GB, free: 18.39 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.814e-05/0.3315, allocations: 340.3 kB / 0.5904 GB, free: 18.06 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00094/0.3325, allocations: 371.1 kB / 0.5907 GB, free: 17.86 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009526/0.3334, allocations: 434.1 kB / 0.5912 GB, free: 17.59 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00181/0.3353, allocations: 0.7534 MB / 0.5919 GB, free: 17.11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3353, allocations: 4 kB / 0.5919 GB, free: 17.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004636/0.3399, allocations: 1.488 MB / 0.5933 GB, free: 15.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.34, allocations: 4 kB / 0.5933 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.34, allocations: 4 kB / 0.5934 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003237/0.3432, allocations: 0.778 MB / 0.5941 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006201/0.3438, allocations: 131.8 kB / 0.5942 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005368/0.3492, allocations: 4.834 MB / 0.599 GB, free: 9.566 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007808/0.35, allocations: 111.8 kB / 0.5991 GB, free: 9.457 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.232e-05/0.3501, allocations: 19.98 kB / 0.5991 GB, free: 9.438 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001028/0.3511, allocations: 0.5232 MB / 0.5996 GB, free: 8.91 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008348/0.352, allocations: 416.2 kB / 0.6 GB, free: 8.473 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00161/0.3536, allocations: 0.7376 MB / 0.6007 GB, free: 7.707 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.124e-06/0.3536, allocations: 0 / 0.6007 GB, free: 7.707 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.003869/0.3575, allocations: 1.262 MB / 0.6019 GB, free: 6.434 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.676e-06/0.3575, allocations: 8 kB / 0.602 GB, free: 6.426 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.467e-06/0.3575, allocations: 3.984 kB / 0.602 GB, free: 6.422 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002108/0.3596, allocations: 0.5004 MB / 0.6024 GB, free: 5.918 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006329/0.3602, allocations: 139.8 kB / 0.6026 GB, free: 5.781 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002705/0.363, allocations: 2.602 MB / 0.6051 GB, free: 3.039 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007664/0.3637, allocations: 111.8 kB / 0.6052 GB, free: 2.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.864e-05/0.3638, allocations: 11.98 kB / 0.6052 GB, free: 2.918 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (29): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001368/0.3639, allocations: 204.7 kB / 0.6054 GB, free: 2.711 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.675e-05/0.364, allocations: 31.62 kB / 0.6055 GB, free: 2.68 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004192/0.3682, allocations: 1.369 MB / 0.6068 GB, free: 1.293 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3682, allocations: 4 kB / 0.6068 GB, free: 1.289 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3683, allocations: 0 / 0.6068 GB, free: 1.289 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3683, allocations: 7.922 kB / 0.6068 GB, free: 1.281 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004848/0.3731, allocations: 1.98 MB / 0.6087 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.3731, allocations: 4 kB / 0.6087 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003799/0.3735, allocations: 79.89 kB / 0.6088 GB, free: 15.14 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003089/0.3766, allocations: 0.7038 MB / 0.6095 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.722e-05/0.3767, allocations: 15.92 kB / 0.6095 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005717/0.3824, allocations: 4.675 MB / 0.6141 GB, free: 9.465 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.3824, allocations: 12.03 kB / 0.6141 GB, free: 9.453 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004209/0.3866, allocations: 1.349 MB / 0.6154 GB, free: 8.074 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002574/0.3869, allocations: 172.6 kB / 0.6156 GB, free: 7.887 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.387, allocations: 8 kB / 0.6156 GB, free: 7.879 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006339/0.3877, allocations: 83.86 kB / 0.6157 GB, free: 7.797 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.3878, allocations: 23.91 kB / 0.6157 GB, free: 7.773 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.237e-05/0.3878, allocations: 11.98 kB / 0.6157 GB, free: 7.762 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0004574/0.3883, allocations: 307.1 kB / 0.616 GB, free: 7.465 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3883, allocations: 0 / 0.616 GB, free: 7.465 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0009597/0.3893, allocations: 204 kB / 0.6162 GB, free: 7.266 MB / 462.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004683/0.394, allocations: 1.914 MB / 0.6181 GB, free: 5.305 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003883/0.3979, allocations: 1.594 MB / 0.6196 GB, free: 3.672 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.3979, allocations: 0 / 0.6196 GB, free: 3.672 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001217/0.3991, allocations: 0.6241 MB / 0.6202 GB, free: 3.023 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007191/0.3998, allocations: 127.4 kB / 0.6204 GB, free: 2.906 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01537/0.4152, allocations: 6.566 MB / 0.6268 GB, free: 12.19 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004778/0.4157, allocations: 0.9093 MB / 0.6277 GB, free: 11.25 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005969/0.4163, allocations: 155.2 kB / 0.6278 GB, free: 11.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000238/0.4166, allocations: 135.4 kB / 0.6279 GB, free: 10.96 MB / 478.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4166, allocations: 4 kB / 0.6279 GB, free: 10.96 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04047/0.4571, allocations: 16.29 MB / 0.6438 GB, free: 10.89 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.31, allocations: 3.938 kB / 0.6438 GB, free: 10.89 MB / 494.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_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_Lines_Examples_ACSimpleGrid.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1)