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.007564/0.007564, 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.001747/0.001747, allocations: 195.4 kB / 16.68 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.461/1.461, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002143/0.002143, allocations: 297.3 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.002/1.002, allocations: 169.2 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 95.86 kB / 0.681 GB, free: 7.488 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.404/0.406, allocations: 86.98 MB / 0.7659 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004907/0.411, allocations: 3.071 MB / 0.7689 GB, free: 0.7773 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003221/0.4142, allocations: 1.898 MB / 0.7707 GB, free: 14.87 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002101/0.4144, allocations: 4 kB / 0.7707 GB, free: 14.86 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001008/0.4155, allocations: 290.8 kB / 0.771 GB, free: 14.58 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005736/0.4161, allocations: 191.1 kB / 0.7712 GB, free: 14.39 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007547/0.4169, allocations: 247.3 kB / 0.7714 GB, free: 14.15 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0004217/0.4173, allocations: 330.7 kB / 0.7718 GB, free: 13.82 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003336/0.4176, allocations: 173 kB / 0.7719 GB, free: 13.65 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002244/0.4179, allocations: 135.5 kB / 0.7721 GB, free: 13.52 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003115/0.4182, allocations: 151.5 kB / 0.7722 GB, free: 13.37 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.612e-05/0.4182, allocations: 20 kB / 0.7722 GB, free: 13.35 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006695/0.4189, allocations: 407.2 kB / 0.7726 GB, free: 12.95 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.419, allocations: 87.73 kB / 0.7727 GB, free: 12.86 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001407/0.4192, allocations: 123.4 kB / 0.7728 GB, free: 12.74 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0007885/0.42, allocations: 491.6 kB / 0.7733 GB, free: 12.27 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.42, allocations: 0 / 0.7733 GB, free: 12.27 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.092e-06/0.42, allocations: 0 / 0.7733 GB, free: 12.27 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.979e-06/0.42, allocations: 0 / 0.7733 GB, free: 12.27 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.000962/0.421, allocations: 0.5762 MB / 0.7738 GB, free: 11.64 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.421, allocations: 8.031 kB / 0.7738 GB, free: 11.63 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.616e-05/0.4211, allocations: 62.66 kB / 0.7739 GB, free: 11.56 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008513/0.422, allocations: 108.7 kB / 0.774 GB, free: 11.46 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000359/0.4223, allocations: 264.8 kB / 0.7743 GB, free: 11.16 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.4224, allocations: 20.8 kB / 0.7743 GB, free: 11.14 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.205e-05/0.4224, allocations: 24.38 kB / 0.7743 GB, free: 11.12 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006291/0.423, allocations: 353.2 kB / 0.7746 GB, free: 10.75 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.4231, allocations: 0 / 0.7746 GB, free: 10.75 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.057e-05/0.4231, allocations: 8 kB / 0.7746 GB, free: 10.75 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.236e-05/0.4232, allocations: 20.42 kB / 0.7747 GB, free: 10.72 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004674/0.4236, allocations: 301.5 kB / 0.775 GB, free: 10.43 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002125/0.4258, allocations: 1.73 MB / 0.7766 GB, free: 8.531 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004791/0.4263, allocations: 326.1 kB / 0.777 GB, free: 8.176 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001554/0.4264, allocations: 109.6 kB / 0.7771 GB, free: 8.062 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001178/0.4266, allocations: 89.08 kB / 0.7771 GB, free: 7.957 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.473e-05/0.4266, allocations: 34.56 kB / 0.7772 GB, free: 7.914 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.463e-06/0.4266, allocations: 0 / 0.7772 GB, free: 7.914 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.002557/0.4292, allocations: 0.9777 MB / 0.7781 GB, free: 6.902 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.4292, allocations: 81.05 kB / 0.7782 GB, free: 6.805 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002052/0.4294, allocations: 211.8 kB / 0.7784 GB, free: 6.586 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.4295, allocations: 33.7 kB / 0.7784 GB, free: 6.547 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.631e-05/0.4296, allocations: 180.5 kB / 0.7786 GB, free: 6.367 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.059e-05/0.4296, allocations: 75.33 kB / 0.7787 GB, free: 6.293 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.982e-05/0.4297, allocations: 65.66 kB / 0.7788 GB, free: 6.223 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.4298, allocations: 330.8 kB / 0.7791 GB, free: 5.891 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.4301, allocations: 131.9 kB / 0.7792 GB, free: 5.762 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002487/0.4303, allocations: 213.3 kB / 0.7794 GB, free: 5.52 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004538/0.4308, allocations: 361.2 kB / 0.7797 GB, free: 5.133 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.4308, allocations: 0 / 0.7797 GB, free: 5.133 MB / 0.545 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008718/0.4317, allocations: 0.5114 MB / 0.7802 GB, free: 4.605 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.4317, allocations: 8 kB / 0.7802 GB, free: 4.598 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.4317, allocations: 96 / 0.7802 GB, free: 4.598 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005292/0.4322, allocations: 151.5 kB / 0.7804 GB, free: 4.438 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000265/0.4325, allocations: 59.91 kB / 0.7804 GB, free: 4.379 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002925/0.4355, allocations: 4.19 MB / 0.7845 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002023/0.4357, allocations: 27.92 kB / 0.7846 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.773e-05/0.4357, allocations: 12 kB / 0.7846 GB, free: 15.82 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.0001667/0.4359, allocations: 170.3 kB / 0.7847 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.331e-05/0.436, allocations: 23.97 kB / 0.7848 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008798/0.4368, allocations: 470.5 kB / 0.7852 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.4369, allocations: 0 / 0.7852 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.321e-06/0.4369, allocations: 4 kB / 0.7852 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.4369, allocations: 7.984 kB / 0.7852 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001492/0.4384, allocations: 1.01 MB / 0.7862 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.4384, allocations: 0 / 0.7862 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001338/0.4385, allocations: 35.97 kB / 0.7862 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004004/0.439, allocations: 143.5 kB / 0.7864 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.276e-05/0.439, allocations: 8 kB / 0.7864 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002747/0.4417, allocations: 4.155 MB / 0.7904 GB, free: 9.34 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.4418, allocations: 3.938 kB / 0.7904 GB, free: 9.336 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007738/0.4425, allocations: 0.6251 MB / 0.7911 GB, free: 8.66 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001265/0.4427, allocations: 132.9 kB / 0.7912 GB, free: 8.512 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.861e-05/0.4427, allocations: 11.98 kB / 0.7912 GB, free: 8.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002287/0.443, allocations: 11.98 kB / 0.7912 GB, free: 8.488 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.608e-05/0.443, allocations: 31.91 kB / 0.7912 GB, free: 8.457 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.153e-05/0.4431, allocations: 12 kB / 0.7913 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001378/0.4432, allocations: 158.1 kB / 0.7914 GB, free: 8.293 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4432, allocations: 0 / 0.7914 GB, free: 8.293 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005096/0.4437, allocations: 95.86 kB / 0.7915 GB, free: 8.199 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.001122/0.4448, allocations: 1.201 MB / 0.7927 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009257/0.4458, allocations: 0.5753 MB / 0.7932 GB, free: 6.328 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4458, allocations: 0 / 0.7932 GB, free: 6.328 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005153/0.4463, allocations: 402.1 kB / 0.7936 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005126/0.4468, allocations: 48.95 kB / 0.7937 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004059/0.4509, allocations: 3.328 MB / 0.7969 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/0.4513, allocations: 0.787 MB / 0.7977 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001662/0.4514, allocations: 54.25 kB / 0.7977 GB, free: 1.473 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.4516, allocations: 71.41 kB / 0.7978 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of SimCode: time 4e-07/0.4516, allocations: 0 / 0.7978 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02882/0.4804, allocations: 6.724 MB / 0.8044 GB, free: 10.87 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.11, allocations: 7.75 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)