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.00106/0.00106, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001129/0.001129, allocations: 197.3 kB / 16.26 MB, free: 6.621 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.291/1.291, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002136/0.002136, allocations: 275.6 kB / 290.3 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.915/0.915, allocations: 169.2 MB / 0.4978 GB, free: 14.05 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 91.77 kB / 0.5948 GB, free: 28.11 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1578/0.1594, allocations: 86.97 MB / 0.6797 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.00505/0.1645, allocations: 3.26 MB / 0.6829 GB, free: 13.65 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002244/0.1668, allocations: 1.349 MB / 0.6842 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002004/0.167, allocations: 7.938 kB / 0.6842 GB, free: 12.29 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001011/0.168, allocations: 321.7 kB / 0.6845 GB, free: 11.98 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004155/0.1685, allocations: 144.2 kB / 0.6847 GB, free: 11.84 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003932/0.1689, allocations: 131 kB / 0.6848 GB, free: 11.71 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003319/0.1692, allocations: 328.1 kB / 0.6851 GB, free: 11.39 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004344/0.1697, allocations: 280.5 kB / 0.6854 GB, free: 11.12 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001745/0.1699, allocations: 139.5 kB / 0.6855 GB, free: 10.98 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002526/0.1701, allocations: 147.5 kB / 0.6857 GB, free: 10.84 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.129e-05/0.1702, allocations: 20 kB / 0.6857 GB, free: 10.82 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002551/0.1704, allocations: 171.6 kB / 0.6858 GB, free: 10.65 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.623e-05/0.1705, allocations: 87.72 kB / 0.6859 GB, free: 10.56 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.1706, allocations: 115.5 kB / 0.686 GB, free: 10.45 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003866/0.171, allocations: 366.8 kB / 0.6864 GB, free: 10.09 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.171, allocations: 4 kB / 0.6864 GB, free: 10.09 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.171, allocations: 4 kB / 0.6864 GB, free: 10.08 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.1711, allocations: 0 / 0.6864 GB, free: 10.08 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.0008179/0.1719, allocations: 0.5379 MB / 0.6869 GB, free: 9.496 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.1719, allocations: 8.031 kB / 0.6869 GB, free: 9.488 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.013e-05/0.172, allocations: 54.73 kB / 0.687 GB, free: 9.426 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005665/0.1726, allocations: 88.58 kB / 0.6871 GB, free: 9.34 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002675/0.1728, allocations: 257.7 kB / 0.6873 GB, free: 9.051 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.1729, allocations: 12.81 kB / 0.6873 GB, free: 9.039 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.24e-05/0.1729, allocations: 20.38 kB / 0.6873 GB, free: 9.02 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004705/0.1734, allocations: 320.4 kB / 0.6876 GB, free: 8.684 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.1734, allocations: 0 / 0.6876 GB, free: 8.684 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.586e-05/0.1734, allocations: 8 kB / 0.6877 GB, free: 8.676 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.5e-05/0.1735, allocations: 20.42 kB / 0.6877 GB, free: 8.656 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003458/0.1738, allocations: 209.6 kB / 0.6879 GB, free: 8.453 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001428/0.1753, allocations: 1.494 MB / 0.6893 GB, free: 6.793 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003996/0.1757, allocations: 207.6 kB / 0.6895 GB, free: 6.562 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.143e-05/0.1758, allocations: 44.83 kB / 0.6896 GB, free: 6.516 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.251e-05/0.1758, allocations: 4 kB / 0.6896 GB, free: 6.512 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.1758, allocations: 34.56 kB / 0.6896 GB, free: 6.469 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.132e-06/0.1758, allocations: 0 / 0.6896 GB, free: 6.469 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005552/0.1764, allocations: 263.3 kB / 0.6899 GB, free: 6.184 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.96e-05/0.1764, allocations: 55.41 kB / 0.6899 GB, free: 6.117 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001807/0.1766, allocations: 212.3 kB / 0.6901 GB, free: 5.902 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.1766, allocations: 25.7 kB / 0.6901 GB, free: 5.871 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.501e-05/0.1767, allocations: 171.7 kB / 0.6903 GB, free: 5.699 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.512e-05/0.1768, allocations: 35.53 kB / 0.6903 GB, free: 5.664 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.748e-05/0.1768, allocations: 37.7 kB / 0.6904 GB, free: 5.621 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.177, allocations: 330.8 kB / 0.6907 GB, free: 5.289 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.295e-05/0.1771, allocations: 47.91 kB / 0.6907 GB, free: 5.242 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001229/0.1772, allocations: 104.5 kB / 0.6908 GB, free: 5.109 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002267/0.1774, allocations: 172.4 kB / 0.691 GB, free: 4.91 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1774, allocations: 0 / 0.691 GB, free: 4.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003596/0.1778, allocations: 222 kB / 0.6912 GB, free: 4.684 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.1778, allocations: 4.281 kB / 0.6912 GB, free: 4.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.1778, allocations: 8 kB / 0.6912 GB, free: 4.672 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001506/0.178, allocations: 32.77 kB / 0.6913 GB, free: 4.637 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.1781, allocations: 35.92 kB / 0.6913 GB, free: 4.602 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001018/0.1792, allocations: 1.425 MB / 0.6927 GB, free: 3.035 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001386/0.1793, allocations: 15.84 kB / 0.6927 GB, free: 3.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.1793, allocations: 8 kB / 0.6927 GB, free: 3.012 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.0001329/0.1795, allocations: 149.9 kB / 0.6928 GB, free: 2.855 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.055e-05/0.1795, allocations: 15.81 kB / 0.6929 GB, free: 2.84 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.087e-05/0.1796, allocations: 21.39 kB / 0.6929 GB, free: 2.824 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1796, allocations: 4 kB / 0.6929 GB, free: 2.82 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-06/0.1796, allocations: 0 / 0.6929 GB, free: 2.82 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1796, allocations: 0 / 0.6929 GB, free: 2.82 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005779/0.1802, allocations: 495 kB / 0.6934 GB, free: 2.277 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.1802, allocations: 4 kB / 0.6934 GB, free: 2.273 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.109e-05/0.1803, allocations: 11.98 kB / 0.6934 GB, free: 2.262 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.307e-05/0.1803, allocations: 24.78 kB / 0.6934 GB, free: 2.234 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.1804, allocations: 4 kB / 0.6934 GB, free: 2.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001021/0.1814, allocations: 1.418 MB / 0.6948 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1814, allocations: 0 / 0.6948 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002774/0.1817, allocations: 244.2 kB / 0.695 GB, free: 424 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.379e-05/0.1818, allocations: 96.91 kB / 0.6951 GB, free: 308 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.1818, allocations: 4 kB / 0.6951 GB, free: 304 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/0.1819, allocations: 7.984 kB / 0.6951 GB, free: 296 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.618e-05/0.182, allocations: 4 kB / 0.6951 GB, free: 292 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.182, allocations: 4 kB / 0.6951 GB, free: 288 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001094/0.1821, allocations: 157.4 kB / 0.6953 GB, free: 132 kB / 494.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.1821, allocations: 0 / 0.6953 GB, free: 132 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003183/0.1824, allocations: 55.84 kB / 0.6953 GB, free: 76 kB / 494.1 MB 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.000612/0.1831, allocations: 0.7716 MB / 0.6961 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004283/0.1835, allocations: 235.1 kB / 0.6963 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1835, allocations: 4.219 kB / 0.6963 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002069/0.1837, allocations: 163.2 kB / 0.6965 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003796/0.1841, allocations: 51.17 kB / 0.6965 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002333/0.1865, allocations: 2.233 MB / 0.6987 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003264/0.1868, allocations: 0.7515 MB / 0.6994 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001117/0.1869, allocations: 29.52 kB / 0.6995 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.187, allocations: 59.41 kB / 0.6995 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of SimCode: time 1.543e-06/0.187, allocations: 0 / 0.6995 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01587/0.2029, allocations: 3.843 MB / 0.7033 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001768/0.2031, allocations: 239 kB / 0.7035 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.746/1.949, allocations: 4 kB / 0.7035 GB, free: 7.652 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)