Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_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.004222/0.004222, allocations: 97 kB / 15.73 MB, free: 5.949 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.001038/0.001038, allocations: 192.8 kB / 16.67 MB, free: 5.871 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.226/1.226, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002004/0.002004, allocations: 292.4 kB / 290.8 MB, free: 14.42 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8738/0.8738, allocations: 169.2 MB / 0.4983 GB, free: 4.398 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001707/0.001707, allocations: 99.84 kB / 0.681 GB, free: 7.465 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3733/0.375, allocations: 86.97 MB / 0.7659 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004806/0.3799, allocations: 3.749 MB / 0.7696 GB, free: 96 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00272/0.3826, allocations: 1.785 MB / 0.7713 GB, free: 14.3 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002713/0.3829, allocations: 19.81 kB / 0.7713 GB, free: 14.28 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0008091/0.3837, allocations: 270.7 kB / 0.7716 GB, free: 14.02 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0006444/0.3844, allocations: 310.4 kB / 0.7719 GB, free: 13.71 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005249/0.3849, allocations: 250.6 kB / 0.7721 GB, free: 13.47 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000556/0.3855, allocations: 0.6088 MB / 0.7727 GB, free: 12.86 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004077/0.3859, allocations: 250.4 kB / 0.773 GB, free: 12.61 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002853/0.3862, allocations: 243.1 kB / 0.7732 GB, free: 12.38 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002734/0.3865, allocations: 239 kB / 0.7734 GB, free: 12.14 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.25e-05/0.3865, allocations: 24 kB / 0.7734 GB, free: 12.12 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003691/0.3869, allocations: 279.3 kB / 0.7737 GB, free: 11.84 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.387, allocations: 123.6 kB / 0.7738 GB, free: 11.72 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001677/0.3872, allocations: 206.9 kB / 0.774 GB, free: 11.52 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005705/0.3878, allocations: 0.5887 MB / 0.7746 GB, free: 10.93 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3878, allocations: 0 / 0.7746 GB, free: 10.93 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.182e-06/0.3878, allocations: 0 / 0.7746 GB, free: 10.93 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.563e-06/0.3878, allocations: 0 / 0.7746 GB, free: 10.93 MB / 0.545 GB 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.001049/0.3889, allocations: 0.759 MB / 0.7753 GB, free: 10.12 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.3889, allocations: 12.03 kB / 0.7753 GB, free: 10.11 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.112e-05/0.389, allocations: 70.72 kB / 0.7754 GB, free: 10.04 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008391/0.3898, allocations: 136.5 kB / 0.7755 GB, free: 9.902 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005294/0.3904, allocations: 411.9 kB / 0.7759 GB, free: 9.465 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.3904, allocations: 21.03 kB / 0.776 GB, free: 9.441 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.264e-05/0.3905, allocations: 36.31 kB / 0.776 GB, free: 9.406 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007027/0.3912, allocations: 0.5508 MB / 0.7765 GB, free: 8.789 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.3912, allocations: 0 / 0.7765 GB, free: 8.789 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.535e-05/0.3912, allocations: 16 kB / 0.7765 GB, free: 8.773 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.782e-05/0.3913, allocations: 48.47 kB / 0.7766 GB, free: 8.723 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000635/0.392, allocations: 409.7 kB / 0.777 GB, free: 8.324 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002472/0.3944, allocations: 3.33 MB / 0.7802 GB, free: 4.742 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005909/0.395, allocations: 336.9 kB / 0.7806 GB, free: 4.406 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002721/0.3953, allocations: 176.8 kB / 0.7807 GB, free: 4.23 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.3953, allocations: 7.984 kB / 0.7807 GB, free: 4.223 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.884e-05/0.3954, allocations: 34.5 kB / 0.7808 GB, free: 4.18 MB / 0.545 GB Notification: Performance of pre-optimization done (n=26): time 2.494e-06/0.3954, allocations: 0 / 0.7808 GB, free: 4.18 MB / 0.545 GB Notification: Performance of matching and sorting (n=27): time 0.001827/0.3972, allocations: 1.074 MB / 0.7818 GB, free: 3.035 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.822e-05/0.3973, allocations: 59.64 kB / 0.7819 GB, free: 2.965 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002808/0.3975, allocations: 333.6 kB / 0.7822 GB, free: 2.629 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.3976, allocations: 29.7 kB / 0.7822 GB, free: 2.594 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.3977, allocations: 252.1 kB / 0.7825 GB, free: 2.344 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.856e-05/0.3978, allocations: 99.16 kB / 0.7826 GB, free: 2.246 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.3979, allocations: 82.08 kB / 0.7826 GB, free: 2.16 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001028/0.398, allocations: 346.8 kB / 0.783 GB, free: 1.812 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002582/0.3983, allocations: 152.8 kB / 0.7831 GB, free: 1.664 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003195/0.3986, allocations: 294.5 kB / 0.7834 GB, free: 1.312 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000597/0.3992, allocations: 484.1 kB / 0.7838 GB, free: 0.7773 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.3992, allocations: 4 kB / 0.7839 GB, free: 0.7734 MB / 0.545 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008698/0.4001, allocations: 0.558 MB / 0.7844 GB, free: 204 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.4001, allocations: 8 kB / 0.7844 GB, free: 196 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.4001, allocations: 4 kB / 0.7844 GB, free: 192 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002731/0.4004, allocations: 94.44 kB / 0.7845 GB, free: 88 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000331/0.4008, allocations: 92.33 kB / 0.7846 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.4008, allocations: 15.88 kB / 0.7846 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002422/0.401, allocations: 23.92 kB / 0.7846 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.771e-05/0.4011, allocations: 20 kB / 0.7846 GB, free: 15.94 MB / 0.5606 GB 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.0001491/0.4012, allocations: 165.7 kB / 0.7848 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.879e-05/0.4013, allocations: 47.7 kB / 0.7848 GB, free: 15.72 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008002/0.4021, allocations: 470.3 kB / 0.7853 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.4021, allocations: 4 kB / 0.7853 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.4021, allocations: 0 / 0.7853 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.4021, allocations: 0 / 0.7853 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001311/0.4034, allocations: 0.9598 MB / 0.7862 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4035, allocations: 0 / 0.7862 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000232/0.4037, allocations: 51.95 kB / 0.7863 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002289/0.4039, allocations: 82.45 kB / 0.7864 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.404, allocations: 8.094 kB / 0.7864 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.404, allocations: 4 kB / 0.7864 GB, free: 14.05 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.404, allocations: 0 / 0.7864 GB, free: 14.05 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007668/0.4047, allocations: 0.5515 MB / 0.7869 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001493/0.4049, allocations: 132.8 kB / 0.787 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.169e-05/0.405, allocations: 11.98 kB / 0.7871 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000216/0.4052, allocations: 23.86 kB / 0.7871 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.845e-05/0.4053, allocations: 27.95 kB / 0.7871 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.4053, allocations: 4 kB / 0.7871 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001951/0.4055, allocations: 239.1 kB / 0.7873 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4055, allocations: 4 kB / 0.7873 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003797/0.4059, allocations: 88 kB / 0.7874 GB, free: 12.93 MB / 0.5606 GB 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.001049/0.4069, allocations: 1.092 MB / 0.7885 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000806/0.4077, allocations: 0.644 MB / 0.7891 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4078, allocations: 0 / 0.7891 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004056/0.4082, allocations: 436.9 kB / 0.7895 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000649/0.4088, allocations: 123.4 kB / 0.7897 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004055/0.4129, allocations: 3.743 MB / 0.7933 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.4132, allocations: 0.8308 MB / 0.7941 GB, free: 5.645 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002116/0.4134, allocations: 79.34 kB / 0.7942 GB, free: 5.566 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001625/0.4136, allocations: 127.4 kB / 0.7943 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of SimCode: time 4.9e-07/0.4136, allocations: 4 kB / 0.7943 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02399/0.4376, allocations: 8.315 MB / 0.8024 GB, free: 13.37 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.946/9.384, allocations: 0.625 kB / 0.8024 GB, free: 13.37 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)