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.001061/0.001065, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.287/1.287, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002043/0.002043, allocations: 282.5 kB / 290.7 MB, free: 2.016 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.913/0.913, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 98.78 kB / 0.5953 GB, free: 28.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1342, allocations: 86.98 MB / 0.6803 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.004528/0.1387, allocations: 3.197 MB / 0.6834 GB, free: 13.39 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002041/0.1408, allocations: 1.365 MB / 0.6847 GB, free: 12.02 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.1409, allocations: 11.94 kB / 0.6848 GB, free: 12.01 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009109/0.1419, allocations: 334.7 kB / 0.6851 GB, free: 11.68 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003001/0.1422, allocations: 147.2 kB / 0.6852 GB, free: 11.54 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003196/0.1425, allocations: 147.6 kB / 0.6854 GB, free: 11.39 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003104/0.1428, allocations: 330.9 kB / 0.6857 GB, free: 11.07 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004034/0.1432, allocations: 251.6 kB / 0.6859 GB, free: 10.82 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001669/0.1434, allocations: 139.5 kB / 0.686 GB, free: 10.69 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002386/0.1437, allocations: 151.4 kB / 0.6862 GB, free: 10.54 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.727e-05/0.1437, allocations: 24 kB / 0.6862 GB, free: 10.52 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000267/0.144, allocations: 171.6 kB / 0.6864 GB, free: 10.35 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.101e-05/0.1441, allocations: 79.8 kB / 0.6864 GB, free: 10.27 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001185/0.1442, allocations: 123.3 kB / 0.6866 GB, free: 10.15 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004029/0.1446, allocations: 354.9 kB / 0.6869 GB, free: 9.801 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.1446, allocations: 0 / 0.6869 GB, free: 9.801 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.093e-06/0.1447, allocations: 0 / 0.6869 GB, free: 9.801 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.1447, allocations: 0 / 0.6869 GB, free: 9.801 MB / 494.1 MB 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.0007737/0.1454, allocations: 0.538 MB / 0.6874 GB, free: 9.215 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.1455, allocations: 12.03 kB / 0.6874 GB, free: 9.203 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.523e-05/0.1456, allocations: 54.73 kB / 0.6875 GB, free: 9.141 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005493/0.1461, allocations: 80.58 kB / 0.6876 GB, free: 9.062 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.1464, allocations: 261.7 kB / 0.6878 GB, free: 8.77 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.1464, allocations: 12.81 kB / 0.6878 GB, free: 8.758 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.992e-05/0.1465, allocations: 20.38 kB / 0.6879 GB, free: 8.738 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004604/0.1469, allocations: 316.4 kB / 0.6882 GB, free: 8.406 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.1469, allocations: 0 / 0.6882 GB, free: 8.406 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.147, allocations: 8 kB / 0.6882 GB, free: 8.398 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.269e-05/0.147, allocations: 20.42 kB / 0.6882 GB, free: 8.379 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003493/0.1474, allocations: 213.6 kB / 0.6884 GB, free: 8.172 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001457/0.1488, allocations: 1.49 MB / 0.6898 GB, free: 6.516 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003983/0.1492, allocations: 215.6 kB / 0.69 GB, free: 6.277 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.029e-05/0.1493, allocations: 44.83 kB / 0.6901 GB, free: 6.23 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.135e-05/0.1494, allocations: 0 / 0.6901 GB, free: 6.23 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.1494, allocations: 42.56 kB / 0.6901 GB, free: 6.18 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 9.91e-07/0.1494, allocations: 0 / 0.6901 GB, free: 6.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005285/0.1499, allocations: 263.3 kB / 0.6904 GB, free: 5.895 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.15, allocations: 51.41 kB / 0.6904 GB, free: 5.832 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001888/0.1502, allocations: 212.3 kB / 0.6906 GB, free: 5.617 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.1502, allocations: 29.7 kB / 0.6907 GB, free: 5.582 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.935e-05/0.1503, allocations: 175.7 kB / 0.6908 GB, free: 5.406 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.668e-05/0.1503, allocations: 35.53 kB / 0.6909 GB, free: 5.371 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.644e-05/0.1504, allocations: 33.7 kB / 0.6909 GB, free: 5.332 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1505, allocations: 326.8 kB / 0.6912 GB, free: 5.004 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.613e-05/0.1506, allocations: 43.97 kB / 0.6912 GB, free: 4.961 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001339/0.1508, allocations: 114.4 kB / 0.6914 GB, free: 4.82 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002296/0.151, allocations: 172.3 kB / 0.6915 GB, free: 4.621 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.151, allocations: 0 / 0.6915 GB, free: 4.621 MB / 494.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003568/0.1514, allocations: 218 kB / 0.6917 GB, free: 4.398 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.1514, allocations: 8 kB / 0.6917 GB, free: 4.391 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1514, allocations: 4.375 kB / 0.6917 GB, free: 4.387 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001423/0.1516, allocations: 32.78 kB / 0.6918 GB, free: 4.352 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.1517, allocations: 31.92 kB / 0.6918 GB, free: 4.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001017/0.1527, allocations: 1.426 MB / 0.6932 GB, free: 2.754 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.1529, allocations: 19.84 kB / 0.6932 GB, free: 2.734 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.1529, allocations: 7.984 kB / 0.6932 GB, free: 2.727 MB / 494.1 MB 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.0001224/0.153, allocations: 154.5 kB / 0.6934 GB, free: 2.566 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.93e-05/0.1531, allocations: 15.81 kB / 0.6934 GB, free: 2.551 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.112e-05/0.1531, allocations: 21.39 kB / 0.6934 GB, free: 2.535 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.1531, allocations: 0 / 0.6934 GB, free: 2.535 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-06/0.1531, allocations: 4.062 kB / 0.6934 GB, free: 2.531 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1531, allocations: 0 / 0.6934 GB, free: 2.531 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005571/0.1537, allocations: 491.1 kB / 0.6939 GB, free: 1.992 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1537, allocations: 3.984 kB / 0.6939 GB, free: 1.988 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.542e-05/0.1538, allocations: 8 kB / 0.6939 GB, free: 1.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-05/0.1539, allocations: 28.78 kB / 0.6939 GB, free: 1.949 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.1539, allocations: 4.062 kB / 0.6939 GB, free: 1.945 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000917/0.1548, allocations: 1.422 MB / 0.6953 GB, free: 392 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1548, allocations: 7.969 kB / 0.6953 GB, free: 384 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002744/0.1551, allocations: 232.1 kB / 0.6955 GB, free: 132 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.85e-05/0.1552, allocations: 100.9 kB / 0.6956 GB, free: 12 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.087e-05/0.1552, allocations: 4.062 kB / 0.6956 GB, free: 8 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001248/0.1553, allocations: 7.984 kB / 0.6956 GB, free: 0 / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.242e-05/0.1554, allocations: 4.047 kB / 0.6956 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.467e-06/0.1554, allocations: 4 kB / 0.6957 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001149/0.1555, allocations: 153.5 kB / 0.6958 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1555, allocations: 3.938 kB / 0.6958 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003155/0.1559, allocations: 55.84 kB / 0.6959 GB, free: 15.79 MB / 0.4981 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.0005408/0.1564, allocations: 0.7677 MB / 0.6966 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004112/0.1568, allocations: 239 kB / 0.6968 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1568, allocations: 4.062 kB / 0.6968 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002092/0.1571, allocations: 166.6 kB / 0.697 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003479/0.1574, allocations: 34.55 kB / 0.697 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002241/0.1597, allocations: 2.151 MB / 0.6991 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000326/0.16, allocations: 0.7554 MB / 0.6999 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001022/0.1601, allocations: 25.86 kB / 0.6999 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.609e-05/0.1602, allocations: 63.41 kB / 0.7 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1602, allocations: 0 / 0.7 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02221/0.1824, allocations: 3.946 MB / 0.7038 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.528/8.71, allocations: 2.938 kB / 0.7038 GB, free: 7.57 MB / 0.4981 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)