Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.Examples.GridDCLoad,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="BuildingSystems_BuildingSystems_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.004755/0.004755, allocations: 99.69 kB / 15.73 MB, free: 6.043 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.00127/0.00127, allocations: 192.3 kB / 16.67 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002529/0.002529, allocations: 296.8 kB / 290.8 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.198/1.198, allocations: 178.5 MB / 0.5074 GB, free: 12.74 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002679/0.002679, allocations: 103.8 kB / 0.6943 GB, free: 15.23 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3883/0.391, allocations: 89.12 MB / 0.7813 GB, free: 1.176 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004157/0.3951, allocations: 3.066 MB / 0.7843 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002951/0.3981, allocations: 1.906 MB / 0.7862 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.3982, allocations: 4.469 kB / 0.7862 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0008873/0.3991, allocations: 286.1 kB / 0.7864 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004401/0.3996, allocations: 201.3 kB / 0.7866 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006112/0.4002, allocations: 242.1 kB / 0.7869 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003806/0.4006, allocations: 327.1 kB / 0.7872 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003167/0.4009, allocations: 178.9 kB / 0.7874 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001711/0.4011, allocations: 126.8 kB / 0.7875 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002827/0.4014, allocations: 153.3 kB / 0.7876 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.008e-05/0.4014, allocations: 20.81 kB / 0.7876 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006048/0.402, allocations: 405.5 kB / 0.788 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.4022, allocations: 88.77 kB / 0.7881 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.4023, allocations: 127.7 kB / 0.7882 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000627/0.4029, allocations: 489.5 kB / 0.7887 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.4029, allocations: 0 / 0.7887 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.162e-06/0.4029, allocations: 1.25 kB / 0.7887 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.403, allocations: 0 / 0.7887 GB, free: 11.68 MB / 0.5606 GB 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.0008451/0.4038, allocations: 0.567 MB / 0.7893 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.4038, allocations: 8.969 kB / 0.7893 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.683e-05/0.4039, allocations: 63.91 kB / 0.7893 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007829/0.4047, allocations: 117.3 kB / 0.7894 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.4051, allocations: 268.4 kB / 0.7897 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.4051, allocations: 20.77 kB / 0.7897 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.389e-05/0.4051, allocations: 16.5 kB / 0.7897 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005405/0.4057, allocations: 363.4 kB / 0.7901 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.4057, allocations: 0 / 0.7901 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.806e-05/0.4057, allocations: 6.5 kB / 0.7901 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.926e-05/0.4058, allocations: 26.3 kB / 0.7901 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004709/0.4063, allocations: 288.8 kB / 0.7904 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002125/0.4084, allocations: 1.732 MB / 0.7921 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004775/0.4089, allocations: 315.3 kB / 0.7924 GB, free: 8.492 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.4091, allocations: 111.8 kB / 0.7925 GB, free: 8.422 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001169/0.4092, allocations: 95.58 kB / 0.7926 GB, free: 8.316 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/0.4092, allocations: 36.97 kB / 0.7926 GB, free: 8.273 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=16): time 1.383e-06/0.4092, allocations: 0 / 0.7926 GB, free: 8.273 MB / 0.5606 GB Notification: Performance of matching and sorting (n=23): time 0.002469/0.4117, allocations: 0.9692 MB / 0.7936 GB, free: 7.688 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.263e-05/0.4118, allocations: 87.47 kB / 0.7936 GB, free: 7.586 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002185/0.412, allocations: 208.4 kB / 0.7938 GB, free: 7.43 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.792e-05/0.412, allocations: 30.89 kB / 0.7939 GB, free: 7.395 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.4121, allocations: 169.2 kB / 0.794 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.178e-05/0.4122, allocations: 89.88 kB / 0.7941 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.4123, allocations: 65.7 kB / 0.7942 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.4125, allocations: 332.4 kB / 0.7945 GB, free: 6.785 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.4127, allocations: 127.4 kB / 0.7946 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002598/0.4129, allocations: 208.4 kB / 0.7948 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004834/0.4134, allocations: 374.2 kB / 0.7952 GB, free: 6.305 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4134, allocations: 1.125 kB / 0.7952 GB, free: 6.305 MB / 0.5606 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008781/0.4143, allocations: 0.5129 MB / 0.7957 GB, free: 6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.4144, allocations: 6.688 kB / 0.7957 GB, free: 6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.4144, allocations: 2.25 kB / 0.7957 GB, free: 6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000504/0.4149, allocations: 150.3 kB / 0.7958 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002411/0.4151, allocations: 60.19 kB / 0.7959 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0033/0.4184, allocations: 4.19 MB / 0.8 GB, free: 1.727 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001855/0.4186, allocations: 16.73 kB / 0.8 GB, free: 1.719 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.4187, allocations: 13.66 kB / 0.8 GB, free: 1.715 MB / 0.5606 GB 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.0001672/0.4188, allocations: 172.1 kB / 0.8002 GB, free: 1.562 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.699e-05/0.4189, allocations: 18.78 kB / 0.8002 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008697/0.4198, allocations: 481.9 kB / 0.8006 GB, free: 1.254 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.4198, allocations: 6.078 kB / 0.8006 GB, free: 1.25 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.4198, allocations: 1.5 kB / 0.8006 GB, free: 1.25 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.4198, allocations: 4.531 kB / 0.8007 GB, free: 1.246 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00157/0.4214, allocations: 0.9981 MB / 0.8016 GB, free: 480 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.4214, allocations: 7.375 kB / 0.8016 GB, free: 476 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001295/0.4216, allocations: 36.81 kB / 0.8017 GB, free: 464 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003913/0.422, allocations: 140.4 kB / 0.8018 GB, free: 376 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.072e-05/0.422, allocations: 8.125 kB / 0.8018 GB, free: 372 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00314/0.4251, allocations: 4.162 MB / 0.8059 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.4252, allocations: 6.891 kB / 0.8059 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008091/0.426, allocations: 0.6208 MB / 0.8065 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.4261, allocations: 130.3 kB / 0.8066 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.086e-05/0.4262, allocations: 11.89 kB / 0.8066 GB, free: 11.58 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000223/0.4264, allocations: 21.39 kB / 0.8066 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.145e-05/0.4265, allocations: 26.66 kB / 0.8067 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.772e-05/0.4265, allocations: 8.25 kB / 0.8067 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001515/0.4266, allocations: 160.3 kB / 0.8068 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4266, allocations: 1.156 kB / 0.8068 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0004818/0.4271, allocations: 90.14 kB / 0.8069 GB, free: 11.42 MB / 0.5762 GB 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.001223/0.4284, allocations: 1.196 MB / 0.8081 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009198/0.4293, allocations: 0.5798 MB / 0.8087 GB, free: 9.965 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4293, allocations: 0 / 0.8087 GB, free: 9.965 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0005257/0.4298, allocations: 401.9 kB / 0.809 GB, free: 9.648 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005111/0.4304, allocations: 43.44 kB / 0.8091 GB, free: 9.625 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004174/0.4345, allocations: 3.347 MB / 0.8123 GB, free: 6.977 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004127/0.435, allocations: 0.775 MB / 0.8131 GB, free: 6.234 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001541/0.4351, allocations: 54.69 kB / 0.8132 GB, free: 6.215 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.4353, allocations: 72.12 kB / 0.8132 GB, free: 6.156 MB / 0.5762 GB Notification: Performance of SimCode: time 2.91e-07/0.4353, allocations: 4 kB / 0.8132 GB, free: 6.152 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03491/0.4702, allocations: 6.723 MB / 0.8198 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.27, allocations: 4.078 kB / 0.8198 GB, free: 15.78 MB / 0.5919 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1)