Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GridDCLoad.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.GridDCLoad,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Examples_GridDCLoad",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.001289/0.001289, allocations: 103.6 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.001364/0.001364, allocations: 184.6 kB / 17.19 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.306/1.306, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7597/0.7597, allocations: 122.9 MB / 413.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001286, allocations: 55.91 kB / 0.4912 GB, free: 7.355 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3273, allocations: 77.93 MB / 0.5673 GB, free: 32.68 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.003932/0.3313, allocations: 3.053 MB / 0.5703 GB, free: 30.63 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002394/0.3337, allocations: 1.917 MB / 0.5721 GB, free: 29.31 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.3338, allocations: 4.469 kB / 0.5721 GB, free: 29.31 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007899/0.3346, allocations: 279.8 kB / 0.5724 GB, free: 29.15 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000428/0.335, allocations: 192.2 kB / 0.5726 GB, free: 29.05 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005344/0.3356, allocations: 247.1 kB / 0.5728 GB, free: 28.93 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003401/0.3359, allocations: 323.7 kB / 0.5731 GB, free: 28.79 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003365/0.3363, allocations: 183 kB / 0.5733 GB, free: 28.71 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001572/0.3364, allocations: 132.4 kB / 0.5734 GB, free: 28.66 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002633/0.3367, allocations: 150.4 kB / 0.5736 GB, free: 28.59 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.752e-05/0.3368, allocations: 20.06 kB / 0.5736 GB, free: 28.59 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006012/0.3374, allocations: 402 kB / 0.574 GB, free: 28.46 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.3375, allocations: 88.31 kB / 0.5741 GB, free: 28.43 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.3376, allocations: 120.5 kB / 0.5742 GB, free: 28.36 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006803/0.3383, allocations: 492.5 kB / 0.5746 GB, free: 28.19 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.3383, allocations: 0 / 0.5746 GB, free: 28.19 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3384, allocations: 1.5 kB / 0.5746 GB, free: 28.19 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.854e-06/0.3384, allocations: 1.062 kB / 0.5746 GB, free: 28.19 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007859/0.3392, allocations: 0.5506 MB / 0.5752 GB, free: 27.71 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.3392, allocations: 10.56 kB / 0.5752 GB, free: 27.71 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.15e-05/0.3393, allocations: 62.53 kB / 0.5753 GB, free: 27.66 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008133/0.3401, allocations: 108.9 kB / 0.5754 GB, free: 27.64 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003039/0.3404, allocations: 266 kB / 0.5756 GB, free: 27.39 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.3405, allocations: 17.33 kB / 0.5756 GB, free: 27.38 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.787e-05/0.3405, allocations: 16.83 kB / 0.5756 GB, free: 27.38 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005886/0.3411, allocations: 366 kB / 0.576 GB, free: 27.19 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.3411, allocations: 0 / 0.576 GB, free: 27.19 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.12e-05/0.3411, allocations: 7.719 kB / 0.576 GB, free: 27.18 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.911e-05/0.3412, allocations: 25.22 kB / 0.576 GB, free: 27.18 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004947/0.3417, allocations: 291.7 kB / 0.5763 GB, free: 27.08 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002013/0.3437, allocations: 1.746 MB / 0.578 GB, free: 25.63 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000482/0.3442, allocations: 321.3 kB / 0.5783 GB, free: 25.42 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000163/0.3444, allocations: 105.8 kB / 0.5784 GB, free: 25.37 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.393e-05/0.3445, allocations: 90.67 kB / 0.5785 GB, free: 25.27 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.3445, allocations: 43.17 kB / 0.5785 GB, free: 25.22 MB / 446.1 MB Notification: Performance of pre-optimization done (n=16): time 1.644e-06/0.3445, allocations: 0 / 0.5785 GB, free: 25.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=23): time 0.00258/0.3471, allocations: 0.9636 MB / 0.5795 GB, free: 24.79 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.827e-05/0.3472, allocations: 84.39 kB / 0.5796 GB, free: 24.69 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002356/0.3474, allocations: 215.9 kB / 0.5798 GB, free: 24.55 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.238e-05/0.3474, allocations: 28.05 kB / 0.5798 GB, free: 24.52 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.42e-05/0.3475, allocations: 171.3 kB / 0.58 GB, free: 24.37 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.355e-05/0.3476, allocations: 85.38 kB / 0.58 GB, free: 24.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.3477, allocations: 64.05 kB / 0.5801 GB, free: 24.26 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.593e-05/0.3478, allocations: 331.7 kB / 0.5804 GB, free: 23.94 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002149/0.348, allocations: 131 kB / 0.5805 GB, free: 23.89 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00024/0.3483, allocations: 209.6 kB / 0.5807 GB, free: 23.75 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004403/0.3487, allocations: 368.9 kB / 0.5811 GB, free: 23.54 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3487, allocations: 3 kB / 0.5811 GB, free: 23.54 MB / 446.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008355/0.3496, allocations: 0.4983 MB / 0.5816 GB, free: 23.31 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.3496, allocations: 7.203 kB / 0.5816 GB, free: 23.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.3496, allocations: 9.516 kB / 0.5816 GB, free: 23.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005237/0.3502, allocations: 151.9 kB / 0.5817 GB, free: 23.24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002473/0.3504, allocations: 60.72 kB / 0.5818 GB, free: 23.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002213/0.3526, allocations: 4.197 MB / 0.5859 GB, free: 19.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001717/0.3528, allocations: 20.77 kB / 0.5859 GB, free: 19.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.347e-05/0.3529, allocations: 16.34 kB / 0.5859 GB, free: 19.13 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 28 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000119/0.353, allocations: 165.1 kB / 0.5861 GB, free: 18.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.285e-05/0.3531, allocations: 17.16 kB / 0.5861 GB, free: 18.97 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007548/0.3538, allocations: 477 kB / 0.5866 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.3538, allocations: 2.562 kB / 0.5866 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.3538, allocations: 1.375 kB / 0.5866 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.3539, allocations: 6.109 kB / 0.5866 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001236/0.3551, allocations: 1.015 MB / 0.5876 GB, free: 17.89 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3551, allocations: 2.656 kB / 0.5876 GB, free: 17.89 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.3552, allocations: 37.91 kB / 0.5876 GB, free: 17.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003361/0.3556, allocations: 144.6 kB / 0.5877 GB, free: 17.79 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.974e-05/0.3556, allocations: 8.328 kB / 0.5878 GB, free: 17.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001857/0.3575, allocations: 4.173 MB / 0.5918 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.3575, allocations: 2.5 kB / 0.5918 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006241/0.3581, allocations: 0.6289 MB / 0.5924 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.777e-05/0.3582, allocations: 126.9 kB / 0.5926 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.54e-05/0.3583, allocations: 7.969 kB / 0.5926 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/0.3585, allocations: 21.81 kB / 0.5926 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.145e-05/0.3585, allocations: 22.23 kB / 0.5926 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.3586, allocations: 12.2 kB / 0.5926 GB, free: 12.99 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001095/0.3587, allocations: 165.3 kB / 0.5928 GB, free: 12.87 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3587, allocations: 1.469 kB / 0.5928 GB, free: 12.87 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004932/0.3592, allocations: 89.62 kB / 0.5929 GB, free: 12.85 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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): 17 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008396/0.36, allocations: 1.198 MB / 0.594 GB, free: 11.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007868/0.3608, allocations: 0.587 MB / 0.5946 GB, free: 11.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.3608, allocations: 1.531 kB / 0.5946 GB, free: 11.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004127/0.3613, allocations: 401.6 kB / 0.595 GB, free: 11.08 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004818/0.3618, allocations: 45 kB / 0.595 GB, free: 11.06 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00326/0.365, allocations: 3.33 MB / 0.5983 GB, free: 8.414 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002066/0.3652, allocations: 0.7791 MB / 0.5991 GB, free: 7.668 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001629/0.3654, allocations: 58.3 kB / 0.5991 GB, free: 7.645 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.635e-05/0.3655, allocations: 72.56 kB / 0.5992 GB, free: 7.586 MB / 446.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3655, allocations: 0 / 0.5992 GB, free: 7.586 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02598/0.3915, allocations: 6.584 MB / 0.6056 GB, free: 2.016 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.07, allocations: 6.812 kB / 0.6056 GB, free: 2.012 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GridDCLoad_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_GridDCLoad.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1)