Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.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.DC.Sources.Examples.VoltageSource,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Sources_Examples_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Sources_Examples_VoltageSource",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.007287/0.007287, allocations: 97.17 kB / 15.73 MB, free: 6.055 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.001876/0.001876, allocations: 194.3 kB / 16.68 MB, free: 5.977 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00249/0.00249, allocations: 287.1 kB / 290.8 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.051/1.051, allocations: 178.6 MB / 0.5074 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002591/0.002591, allocations: 99.03 kB / 0.6943 GB, free: 3.613 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4452/0.4478, allocations: 89.13 MB / 0.7813 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.004922/0.4527, allocations: 3.201 MB / 0.7844 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002249/0.455, allocations: 1.377 MB / 0.7858 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.4551, allocations: 4.812 kB / 0.7858 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001036/0.4562, allocations: 346.1 kB / 0.7861 GB, free: 10.51 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003523/0.4566, allocations: 148.6 kB / 0.7863 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003715/0.4569, allocations: 143.7 kB / 0.7864 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004166/0.4574, allocations: 334.2 kB / 0.7867 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004497/0.4578, allocations: 250.8 kB / 0.787 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000201/0.458, allocations: 141 kB / 0.7871 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002966/0.4584, allocations: 147.3 kB / 0.7872 GB, free: 9.969 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.909e-05/0.4584, allocations: 24.44 kB / 0.7873 GB, free: 9.965 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003275/0.4587, allocations: 170.6 kB / 0.7874 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.4589, allocations: 84.34 kB / 0.7875 GB, free: 9.871 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001473/0.459, allocations: 121 kB / 0.7876 GB, free: 9.801 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004943/0.4595, allocations: 362.3 kB / 0.788 GB, free: 9.672 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.4595, allocations: 1.5 kB / 0.788 GB, free: 9.672 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.563e-06/0.4595, allocations: 0 / 0.788 GB, free: 9.672 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.4595, allocations: 0 / 0.788 GB, free: 9.672 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008743/0.4604, allocations: 0.5499 MB / 0.7885 GB, free: 9.191 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.4605, allocations: 9.062 kB / 0.7885 GB, free: 9.191 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.049e-05/0.4605, allocations: 60.25 kB / 0.7886 GB, free: 9.137 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005754/0.4611, allocations: 81.31 kB / 0.7886 GB, free: 9.121 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003334/0.4615, allocations: 252.7 kB / 0.7889 GB, free: 8.887 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.306e-05/0.4615, allocations: 16.22 kB / 0.7889 GB, free: 8.879 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.925e-05/0.4615, allocations: 25.88 kB / 0.7889 GB, free: 8.867 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006076/0.4622, allocations: 311.6 kB / 0.7892 GB, free: 8.703 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.4622, allocations: 0.5625 kB / 0.7892 GB, free: 8.703 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.272e-05/0.4622, allocations: 10.53 kB / 0.7892 GB, free: 8.695 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.562e-05/0.4623, allocations: 16.5 kB / 0.7892 GB, free: 8.695 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005154/0.4628, allocations: 219.7 kB / 0.7895 GB, free: 8.621 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001758/0.4646, allocations: 1.488 MB / 0.7909 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004605/0.465, allocations: 210.7 kB / 0.7911 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.4651, allocations: 44.09 kB / 0.7911 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.4652, allocations: 1 kB / 0.7911 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.4652, allocations: 32.41 kB / 0.7912 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.242e-06/0.4652, allocations: 3.938 kB / 0.7912 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.0005988/0.4658, allocations: 266.8 kB / 0.7914 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.436e-05/0.4659, allocations: 53.12 kB / 0.7915 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002216/0.4661, allocations: 207.9 kB / 0.7917 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.4661, allocations: 30.8 kB / 0.7917 GB, free: 6.641 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.4663, allocations: 176.5 kB / 0.7919 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.078e-05/0.4663, allocations: 30.23 kB / 0.7919 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.599e-05/0.4664, allocations: 38.02 kB / 0.7919 GB, free: 6.438 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001424/0.4665, allocations: 326.4 kB / 0.7923 GB, free: 6.117 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001229/0.4666, allocations: 51.97 kB / 0.7923 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.4668, allocations: 109.2 kB / 0.7924 GB, free: 6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002597/0.4671, allocations: 171 kB / 0.7926 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.4671, allocations: 1.219 kB / 0.7926 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004027/0.4675, allocations: 214 kB / 0.7928 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.4675, allocations: 5.031 kB / 0.7928 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.4675, allocations: 2.969 kB / 0.7928 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001625/0.4677, allocations: 36.05 kB / 0.7928 GB, free: 5.742 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.4678, allocations: 32.64 kB / 0.7929 GB, free: 5.738 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001212/0.4691, allocations: 1.421 MB / 0.7942 GB, free: 4.324 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.4692, allocations: 27 kB / 0.7943 GB, free: 4.305 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.4692, allocations: 8.047 kB / 0.7943 GB, free: 4.305 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (18): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001462/0.4694, allocations: 161.4 kB / 0.7944 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.222e-05/0.4694, allocations: 16.17 kB / 0.7944 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.603e-05/0.4695, allocations: 19.28 kB / 0.7945 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.4695, allocations: 1.5 kB / 0.7945 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.4695, allocations: 0.8438 kB / 0.7945 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.4695, allocations: 0 / 0.7945 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006573/0.4702, allocations: 490.7 kB / 0.7949 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.4702, allocations: 1.281 kB / 0.7949 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.397e-05/0.4702, allocations: 15.5 kB / 0.795 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.503e-05/0.4703, allocations: 24.41 kB / 0.795 GB, free: 3.742 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.4704, allocations: 0 / 0.795 GB, free: 3.742 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001128/0.4715, allocations: 1.431 MB / 0.7964 GB, free: 2.312 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.4715, allocations: 1.469 kB / 0.7964 GB, free: 2.312 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003187/0.4718, allocations: 240.4 kB / 0.7966 GB, free: 2.129 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.522e-05/0.4719, allocations: 104.5 kB / 0.7967 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.233e-05/0.472, allocations: 0.5156 kB / 0.7967 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.4721, allocations: 11.23 kB / 0.7967 GB, free: 2.016 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.765e-05/0.4721, allocations: 4.766 kB / 0.7967 GB, free: 2.016 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-06/0.4721, allocations: 3.203 kB / 0.7967 GB, free: 2.016 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001404/0.4723, allocations: 152.3 kB / 0.7969 GB, free: 1.914 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4723, allocations: 96 / 0.7969 GB, free: 1.914 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000333/0.4726, allocations: 64.38 kB / 0.7969 GB, free: 1.895 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006181/0.4733, allocations: 0.7694 MB / 0.7977 GB, free: 1.184 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004313/0.4737, allocations: 234.1 kB / 0.7979 GB, free: 1.031 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4737, allocations: 0 / 0.7979 GB, free: 1.031 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002222/0.4739, allocations: 157.6 kB / 0.7981 GB, free: 0.9102 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003656/0.4743, allocations: 42.36 kB / 0.7981 GB, free: 0.8945 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002546/0.4769, allocations: 2.159 MB / 0.8002 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003891/0.4773, allocations: 0.7561 MB / 0.8009 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001034/0.4774, allocations: 24.12 kB / 0.801 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.327e-05/0.4775, allocations: 60.98 kB / 0.801 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of SimCode: time 2.31e-07/0.4775, allocations: 0 / 0.801 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02848/0.506, allocations: 4.036 MB / 0.805 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.423/9.929, allocations: 12.56 kB / 0.805 GB, free: 12.68 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource_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_DC_Sources_Examples_VoltageSource.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1)