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.004257/0.004257, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001036/0.001036, allocations: 192.3 kB / 16.67 MB, free: 5.969 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.232/1.232, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002003/0.002003, allocations: 296.9 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9139/0.9139, allocations: 169.3 MB / 0.4983 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 99.84 kB / 0.681 GB, free: 7.461 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3814/0.3831, allocations: 86.98 MB / 0.7659 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.003984/0.3871, allocations: 3.067 MB / 0.7689 GB, free: 0.7773 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002712/0.3898, allocations: 1.902 MB / 0.7707 GB, free: 14.86 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001434/0.39, allocations: 7.938 kB / 0.7708 GB, free: 14.86 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0009405/0.391, allocations: 282.9 kB / 0.771 GB, free: 14.58 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.000489/0.3915, allocations: 195.1 kB / 0.7712 GB, free: 14.39 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.00072/0.3922, allocations: 247.3 kB / 0.7714 GB, free: 14.14 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003167/0.3925, allocations: 322.7 kB / 0.7718 GB, free: 13.83 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000288/0.3928, allocations: 185 kB / 0.7719 GB, free: 13.64 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001576/0.393, allocations: 131.5 kB / 0.7721 GB, free: 13.51 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002426/0.3932, allocations: 147.5 kB / 0.7722 GB, free: 13.37 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.097e-05/0.3933, allocations: 20 kB / 0.7722 GB, free: 13.35 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004992/0.3938, allocations: 407.2 kB / 0.7726 GB, free: 12.95 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 8.146e-05/0.3939, allocations: 91.66 kB / 0.7727 GB, free: 12.86 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.394, allocations: 119.4 kB / 0.7728 GB, free: 12.74 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.000622/0.3946, allocations: 491.6 kB / 0.7733 GB, free: 12.27 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.3946, allocations: 4 kB / 0.7733 GB, free: 12.26 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3946, allocations: 0 / 0.7733 GB, free: 12.26 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.612e-06/0.3946, allocations: 0 / 0.7733 GB, free: 12.26 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0009362/0.3956, allocations: 0.5684 MB / 0.7738 GB, free: 11.64 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.3956, allocations: 16.03 kB / 0.7738 GB, free: 11.63 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.036e-05/0.3957, allocations: 62.66 kB / 0.7739 GB, free: 11.56 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007655/0.3965, allocations: 104.7 kB / 0.774 GB, free: 11.46 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003066/0.3968, allocations: 268 kB / 0.7743 GB, free: 11.16 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.3968, allocations: 12.81 kB / 0.7743 GB, free: 11.14 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.499e-05/0.3969, allocations: 20.36 kB / 0.7743 GB, free: 11.12 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004799/0.3974, allocations: 357.3 kB / 0.7746 GB, free: 10.76 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.3974, allocations: 0 / 0.7746 GB, free: 10.76 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.964e-05/0.3974, allocations: 11.97 kB / 0.7746 GB, free: 10.75 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.233e-05/0.3975, allocations: 28.42 kB / 0.7747 GB, free: 10.71 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004158/0.3979, allocations: 301.4 kB / 0.775 GB, free: 10.42 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.3998, allocations: 1.726 MB / 0.7766 GB, free: 8.527 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004327/0.4002, allocations: 328.1 kB / 0.777 GB, free: 8.172 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.4004, allocations: 109.6 kB / 0.7771 GB, free: 8.059 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 9.067e-05/0.4005, allocations: 85.11 kB / 0.7771 GB, free: 7.957 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.4005, allocations: 34.56 kB / 0.7772 GB, free: 7.914 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.302e-06/0.4005, allocations: 0 / 0.7772 GB, free: 7.914 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.002247/0.4027, allocations: 0.9739 MB / 0.7781 GB, free: 6.906 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.4028, allocations: 85.05 kB / 0.7782 GB, free: 6.805 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.403, allocations: 211.8 kB / 0.7784 GB, free: 6.586 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.403, allocations: 29.7 kB / 0.7784 GB, free: 6.551 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.743e-05/0.4031, allocations: 172.4 kB / 0.7786 GB, free: 6.379 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.59e-05/0.4032, allocations: 87.31 kB / 0.7787 GB, free: 6.293 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.357e-05/0.4033, allocations: 65.69 kB / 0.7787 GB, free: 6.223 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.309e-05/0.4034, allocations: 330.8 kB / 0.7791 GB, free: 5.891 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001756/0.4036, allocations: 127.9 kB / 0.7792 GB, free: 5.766 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.4038, allocations: 209.3 kB / 0.7794 GB, free: 5.527 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004077/0.4042, allocations: 365.2 kB / 0.7797 GB, free: 5.137 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.4042, allocations: 0 / 0.7797 GB, free: 5.137 MB / 0.545 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007791/0.405, allocations: 0.5154 MB / 0.7802 GB, free: 4.605 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.405, allocations: 10.5 kB / 0.7802 GB, free: 4.598 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.405, allocations: 0 / 0.7802 GB, free: 4.598 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000472/0.4055, allocations: 155.5 kB / 0.7804 GB, free: 4.434 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002413/0.4058, allocations: 67.83 kB / 0.7805 GB, free: 4.367 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002647/0.4084, allocations: 4.186 MB / 0.7845 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001843/0.4086, allocations: 19.94 kB / 0.7846 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.499e-05/0.4087, allocations: 19.98 kB / 0.7846 GB, free: 15.8 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.0001425/0.4088, allocations: 162.3 kB / 0.7847 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.073e-05/0.4089, allocations: 19.91 kB / 0.7848 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007712/0.4097, allocations: 478.6 kB / 0.7852 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.4097, allocations: 4 kB / 0.7852 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.4097, allocations: 0 / 0.7852 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.4097, allocations: 4 kB / 0.7852 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001399/0.4111, allocations: 1.008 MB / 0.7862 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.4111, allocations: 4 kB / 0.7862 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001233/0.4112, allocations: 27.98 kB / 0.7862 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003592/0.4116, allocations: 147.3 kB / 0.7864 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.4116, allocations: 8 kB / 0.7864 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002463/0.4141, allocations: 4.155 MB / 0.7904 GB, free: 9.34 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.4141, allocations: 7.969 kB / 0.7905 GB, free: 9.332 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007072/0.4148, allocations: 0.6211 MB / 0.7911 GB, free: 8.66 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/0.415, allocations: 124.9 kB / 0.7912 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.366e-05/0.415, allocations: 11.94 kB / 0.7912 GB, free: 8.508 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.4152, allocations: 19.98 kB / 0.7912 GB, free: 8.488 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.095e-05/0.4153, allocations: 27.97 kB / 0.7912 GB, free: 8.461 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.601e-05/0.4153, allocations: 8 kB / 0.7912 GB, free: 8.453 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000128/0.4154, allocations: 162.1 kB / 0.7914 GB, free: 8.297 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.3e-07/0.4154, allocations: 0 / 0.7914 GB, free: 8.297 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004709/0.4159, allocations: 91.88 kB / 0.7915 GB, free: 8.207 MB / 0.5606 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.0009946/0.4169, allocations: 1.205 MB / 0.7927 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008524/0.4178, allocations: 0.5792 MB / 0.7932 GB, free: 6.328 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4178, allocations: 0 / 0.7932 GB, free: 6.328 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004712/0.4183, allocations: 398.1 kB / 0.7936 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004937/0.4188, allocations: 56.67 kB / 0.7937 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003657/0.4225, allocations: 3.333 MB / 0.7969 GB, free: 2.324 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003311/0.4228, allocations: 0.7753 MB / 0.7977 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001498/0.423, allocations: 66.23 kB / 0.7977 GB, free: 1.461 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.4231, allocations: 79.41 kB / 0.7978 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of SimCode: time 3.31e-07/0.4231, allocations: 0 / 0.7978 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02687/0.4499, allocations: 6.708 MB / 0.8044 GB, free: 10.87 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/11.08, allocations: 13.58 kB / 0.8044 GB, free: 10.86 MB / 0.5762 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)