Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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.Loads.Examples.VariableImpedance,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",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.00114/0.00114, allocations: 103.9 kB / 16.27 MB, free: 6.047 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.001125/0.001125, allocations: 182.7 kB / 17.19 MB, free: 5.688 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.297/1.297, 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.7387/0.7387, allocations: 122.8 MB / 413.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 67.91 kB / 0.4912 GB, free: 7.32 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/0.3282, allocations: 77.92 MB / 0.5673 GB, free: 32.6 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.00448/0.3327, allocations: 3.727 MB / 0.5709 GB, free: 30.03 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002509/0.3353, allocations: 1.789 MB / 0.5727 GB, free: 28.81 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000196/0.3355, allocations: 18.06 kB / 0.5727 GB, free: 28.8 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007609/0.3363, allocations: 265.8 kB / 0.573 GB, free: 28.64 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006814/0.337, allocations: 301.1 kB / 0.5732 GB, free: 28.48 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005948/0.3376, allocations: 245.8 kB / 0.5735 GB, free: 28.36 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006557/0.3382, allocations: 0.6104 MB / 0.5741 GB, free: 28.08 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004386/0.3387, allocations: 258.6 kB / 0.5743 GB, free: 27.97 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003639/0.3391, allocations: 235.8 kB / 0.5745 GB, free: 27.87 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003375/0.3394, allocations: 233.8 kB / 0.5748 GB, free: 27.77 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.534e-05/0.3395, allocations: 27.34 kB / 0.5748 GB, free: 27.77 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006284/0.3401, allocations: 273.7 kB / 0.575 GB, free: 27.68 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001881/0.3403, allocations: 126.5 kB / 0.5752 GB, free: 27.62 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002417/0.3406, allocations: 208.3 kB / 0.5754 GB, free: 27.5 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008836/0.3415, allocations: 0.5811 MB / 0.5759 GB, free: 27.29 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3415, allocations: 1.062 kB / 0.5759 GB, free: 27.29 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3415, allocations: 0.5156 kB / 0.5759 GB, free: 27.29 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.786e-06/0.3415, allocations: 0.8125 kB / 0.5759 GB, free: 27.29 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001117/0.3426, allocations: 0.7285 MB / 0.5767 GB, free: 26.71 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.3427, allocations: 15.41 kB / 0.5767 GB, free: 26.71 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.797e-05/0.3427, allocations: 70.48 kB / 0.5767 GB, free: 26.65 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009369/0.3437, allocations: 134.8 kB / 0.5769 GB, free: 26.62 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004523/0.3442, allocations: 377 kB / 0.5772 GB, free: 26.33 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/0.3442, allocations: 28.67 kB / 0.5772 GB, free: 26.32 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.492e-05/0.3442, allocations: 32.5 kB / 0.5773 GB, free: 26.3 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000743/0.345, allocations: 0.556 MB / 0.5778 GB, free: 25.95 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.345, allocations: 9.766 kB / 0.5778 GB, free: 25.95 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.711e-05/0.3451, allocations: 17.31 kB / 0.5778 GB, free: 25.93 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-05/0.3451, allocations: 42.83 kB / 0.5779 GB, free: 25.93 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006518/0.3458, allocations: 406.4 kB / 0.5783 GB, free: 25.79 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00222/0.348, allocations: 3.339 MB / 0.5815 GB, free: 22.84 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000609/0.3486, allocations: 331.3 kB / 0.5819 GB, free: 22.71 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002822/0.3489, allocations: 179.7 kB / 0.582 GB, free: 22.65 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.349, allocations: 2.75 kB / 0.582 GB, free: 22.65 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.349, allocations: 37.23 kB / 0.5821 GB, free: 22.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=26): time 3.115e-06/0.349, allocations: 5.172 kB / 0.5821 GB, free: 22.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=27): time 0.001889/0.3509, allocations: 1.062 MB / 0.5831 GB, free: 21.87 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.915e-05/0.3509, allocations: 55.52 kB / 0.5832 GB, free: 21.81 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002882/0.3512, allocations: 346.1 kB / 0.5835 GB, free: 21.58 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.3513, allocations: 31.08 kB / 0.5835 GB, free: 21.55 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.3514, allocations: 241.6 kB / 0.5837 GB, free: 21.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.704e-05/0.3514, allocations: 99.61 kB / 0.5838 GB, free: 21.24 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.3515, allocations: 72.55 kB / 0.5839 GB, free: 21.19 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.976e-05/0.3516, allocations: 349.2 kB / 0.5842 GB, free: 20.85 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002479/0.3519, allocations: 149.5 kB / 0.5844 GB, free: 20.78 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002944/0.3522, allocations: 290.4 kB / 0.5847 GB, free: 20.53 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005598/0.3527, allocations: 480.1 kB / 0.5851 GB, free: 20.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3527, allocations: 1.625 kB / 0.5851 GB, free: 20.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008625/0.3536, allocations: 0.5702 MB / 0.5857 GB, free: 19.87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.3536, allocations: 6.312 kB / 0.5857 GB, free: 19.87 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/0.3537, allocations: 5.5 kB / 0.5857 GB, free: 19.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002709/0.3539, allocations: 84.58 kB / 0.5858 GB, free: 19.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003102/0.3543, allocations: 92.28 kB / 0.5859 GB, free: 19.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.3543, allocations: 11.41 kB / 0.5859 GB, free: 19.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000252/0.3545, allocations: 26.06 kB / 0.5859 GB, free: 19.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.592e-05/0.3546, allocations: 17.78 kB / 0.5859 GB, free: 19.77 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001424/0.3547, allocations: 183.5 kB / 0.5861 GB, free: 19.61 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.069e-05/0.3548, allocations: 39.22 kB / 0.5861 GB, free: 19.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007715/0.3556, allocations: 465.2 kB / 0.5866 GB, free: 19.31 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.3556, allocations: 3.062 kB / 0.5866 GB, free: 19.31 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3556, allocations: 1.281 kB / 0.5866 GB, free: 19.31 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.3556, allocations: 7.922 kB / 0.5866 GB, free: 19.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001237/0.3568, allocations: 0.958 MB / 0.5875 GB, free: 18.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3568, allocations: 5.375 kB / 0.5875 GB, free: 18.58 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002258/0.3571, allocations: 52.14 kB / 0.5876 GB, free: 18.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002029/0.3573, allocations: 88.09 kB / 0.5877 GB, free: 18.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.3573, allocations: 6.75 kB / 0.5877 GB, free: 18.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.3573, allocations: 1.938 kB / 0.5877 GB, free: 18.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3573, allocations: 1.125 kB / 0.5877 GB, free: 18.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006999/0.358, allocations: 0.548 MB / 0.5882 GB, free: 18.12 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.3582, allocations: 137.8 kB / 0.5883 GB, free: 17.98 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.073e-05/0.3582, allocations: 7.719 kB / 0.5883 GB, free: 17.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/0.3584, allocations: 26.03 kB / 0.5884 GB, free: 17.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.967e-05/0.3585, allocations: 25.78 kB / 0.5884 GB, free: 17.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.591e-05/0.3585, allocations: 5.5 kB / 0.5884 GB, free: 17.95 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001748/0.3587, allocations: 238 kB / 0.5886 GB, free: 17.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3587, allocations: 0 / 0.5886 GB, free: 17.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004061/0.3591, allocations: 86.09 kB / 0.5887 GB, free: 17.79 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008425/0.36, allocations: 1.088 MB / 0.5898 GB, free: 16.88 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007607/0.3607, allocations: 0.6645 MB / 0.5904 GB, free: 16.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.3608, allocations: 5.406 kB / 0.5904 GB, free: 16.37 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003416/0.3611, allocations: 434.5 kB / 0.5908 GB, free: 15.98 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006919/0.3618, allocations: 131.9 kB / 0.591 GB, free: 15.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003787/0.3656, allocations: 3.75 MB / 0.5946 GB, free: 13.09 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002114/0.3658, allocations: 0.8257 MB / 0.5954 GB, free: 12.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002621/0.3661, allocations: 79.45 kB / 0.5955 GB, free: 12.29 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001433/0.3663, allocations: 127.7 kB / 0.5956 GB, free: 12.19 MB / 446.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3663, allocations: 1.5 kB / 0.5956 GB, free: 12.19 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02329/0.3896, allocations: 8.178 MB / 0.6036 GB, free: 4.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.713/9.102, allocations: 10 kB / 0.6036 GB, free: 4.586 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_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_Loads_Examples_VariableImpedance.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)