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.0007331/0.0007332, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.004694/0.004694, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.294/1.294, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00167/0.00167, allocations: 263.2 kB / 291.7 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9328/0.9328, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003946/0.0003946, allocations: 19.22 kB / 0.5988 GB, free: 27.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1555/0.1559, allocations: 88.54 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.00367/0.1596, allocations: 2.876 MB / 0.688 GB, free: 12.07 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002045/0.1617, allocations: 1.349 MB / 0.6894 GB, free: 10.72 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.1618, allocations: 4 kB / 0.6894 GB, free: 10.71 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.162, allocations: 44.17 kB / 0.6894 GB, free: 10.67 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003609/0.1624, allocations: 133.4 kB / 0.6895 GB, free: 10.54 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003565/0.1628, allocations: 136.4 kB / 0.6897 GB, free: 10.41 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004307/0.1632, allocations: 462 kB / 0.6901 GB, free: 9.961 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003361/0.1636, allocations: 251.9 kB / 0.6903 GB, free: 9.699 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001533/0.1637, allocations: 109.3 kB / 0.6904 GB, free: 9.594 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002585/0.164, allocations: 139.4 kB / 0.6906 GB, free: 9.457 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.73e-05/0.164, allocations: 11.98 kB / 0.6906 GB, free: 9.445 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003004/0.1643, allocations: 207.6 kB / 0.6908 GB, free: 9.242 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.95e-05/0.1644, allocations: 72.39 kB / 0.6909 GB, free: 9.172 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001261/0.1646, allocations: 137.1 kB / 0.691 GB, free: 9.031 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003696/0.1649, allocations: 356.4 kB / 0.6913 GB, free: 8.684 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1649, allocations: 0 / 0.6913 GB, free: 8.684 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1649, allocations: 0 / 0.6913 GB, free: 8.684 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.461e-06/0.165, allocations: 0 / 0.6913 GB, free: 8.684 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.0007584/0.1657, allocations: 0.4943 MB / 0.6918 GB, free: 8.145 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.1658, allocations: 8.031 kB / 0.6918 GB, free: 8.137 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.161e-05/0.1658, allocations: 58.72 kB / 0.6919 GB, free: 8.07 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005616/0.1664, allocations: 85.98 kB / 0.692 GB, free: 7.988 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002975/0.1667, allocations: 253.7 kB / 0.6922 GB, free: 7.703 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.1667, allocations: 21.61 kB / 0.6922 GB, free: 7.684 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.394e-05/0.1668, allocations: 24.36 kB / 0.6922 GB, free: 7.66 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004808/0.1673, allocations: 315.1 kB / 0.6925 GB, free: 7.332 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.1673, allocations: 7.938 kB / 0.6925 GB, free: 7.324 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.635e-05/0.1673, allocations: 12 kB / 0.6926 GB, free: 7.312 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.917e-05/0.1674, allocations: 16.38 kB / 0.6926 GB, free: 7.297 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003524/0.1677, allocations: 217.5 kB / 0.6928 GB, free: 7.086 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001483/0.1692, allocations: 1.498 MB / 0.6942 GB, free: 5.422 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004221/0.1696, allocations: 211.7 kB / 0.6944 GB, free: 5.188 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.563e-05/0.1697, allocations: 40.84 kB / 0.6945 GB, free: 5.145 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.452e-05/0.1698, allocations: 7.938 kB / 0.6945 GB, free: 5.137 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.1698, allocations: 34.56 kB / 0.6945 GB, free: 5.094 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.353e-06/0.1698, allocations: 0 / 0.6945 GB, free: 5.094 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005384/0.1703, allocations: 267.4 kB / 0.6948 GB, free: 4.805 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.691e-05/0.1704, allocations: 51.41 kB / 0.6948 GB, free: 4.742 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001754/0.1706, allocations: 220.2 kB / 0.695 GB, free: 4.52 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.727e-05/0.1706, allocations: 29.7 kB / 0.6951 GB, free: 4.484 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.621e-05/0.1707, allocations: 175.7 kB / 0.6952 GB, free: 4.309 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.572e-05/0.1707, allocations: 31.55 kB / 0.6953 GB, free: 4.277 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.032e-05/0.1708, allocations: 17.72 kB / 0.6953 GB, free: 4.254 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.1709, allocations: 326.8 kB / 0.6956 GB, free: 3.926 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.83e-05/0.171, allocations: 47.97 kB / 0.6956 GB, free: 3.879 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001303/0.1711, allocations: 118.4 kB / 0.6958 GB, free: 3.734 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002225/0.1713, allocations: 164.4 kB / 0.6959 GB, free: 3.543 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1714, allocations: 4 kB / 0.6959 GB, free: 3.539 MB / 494.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003531/0.1717, allocations: 214 kB / 0.6961 GB, free: 3.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.1717, allocations: 8 kB / 0.6961 GB, free: 3.312 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.1718, allocations: 4.219 kB / 0.6961 GB, free: 3.309 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002061/0.172, allocations: 36.78 kB / 0.6962 GB, free: 3.27 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.1721, allocations: 31.98 kB / 0.6962 GB, free: 3.238 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009713/0.1731, allocations: 1.327 MB / 0.6975 GB, free: 1.777 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001337/0.1732, allocations: 27.67 kB / 0.6975 GB, free: 1.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.588e-05/0.1733, allocations: 8 kB / 0.6975 GB, free: 1.742 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.0001289/0.1734, allocations: 145.7 kB / 0.6977 GB, free: 1.59 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.873e-05/0.1734, allocations: 23.94 kB / 0.6977 GB, free: 1.566 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.348e-05/0.1735, allocations: 25.39 kB / 0.6977 GB, free: 1.547 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.1735, allocations: 0 / 0.6977 GB, free: 1.547 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.1735, allocations: 0 / 0.6977 GB, free: 1.547 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.1735, allocations: 0 / 0.6977 GB, free: 1.547 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005818/0.1741, allocations: 499 kB / 0.6982 GB, free: 1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1741, allocations: 0 / 0.6982 GB, free: 1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.381e-05/0.1742, allocations: 15.98 kB / 0.6982 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.764e-05/0.1743, allocations: 24.84 kB / 0.6982 GB, free: 0.957 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.1743, allocations: 0 / 0.6982 GB, free: 0.957 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008901/0.1752, allocations: 1.319 MB / 0.6995 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1752, allocations: 0 / 0.6995 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003004/0.1755, allocations: 244.2 kB / 0.6997 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.005e-05/0.1756, allocations: 100.8 kB / 0.6998 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.041e-05/0.1756, allocations: 4 kB / 0.6998 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001226/0.1757, allocations: 11.98 kB / 0.6999 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.168e-05/0.1758, allocations: 4 kB / 0.6999 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-06/0.1758, allocations: 3.984 kB / 0.6999 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001233/0.1759, allocations: 149.5 kB / 0.7 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1759, allocations: 0 / 0.7 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003199/0.1762, allocations: 67.73 kB / 0.7001 GB, free: 14.89 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.0005393/0.1768, allocations: 0.7685 MB / 0.7008 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003871/0.1772, allocations: 242.4 kB / 0.7011 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1772, allocations: 0 / 0.7011 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002108/0.1774, allocations: 159.9 kB / 0.7012 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003589/0.1778, allocations: 39.97 kB / 0.7012 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002258/0.1801, allocations: 2.27 MB / 0.7035 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.1804, allocations: 0.7557 MB / 0.7042 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001014/0.1805, allocations: 17.55 kB / 0.7042 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.616e-05/0.1806, allocations: 67.41 kB / 0.7043 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of SimCode: time 4.7e-07/0.1806, allocations: 0 / 0.7043 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01369/0.1943, allocations: 3.666 MB / 0.7079 GB, free: 6.902 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001708/0.1945, allocations: 236.5 kB / 0.7081 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.719/1.913, allocations: 0 / 0.7081 GB, free: 6.648 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Sources_Examples_VoltageSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Sources_Examples_VoltageSource.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1)