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: translateModel(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource") translateModel(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 106.1 kB / 15.98 MB, free: 5.891 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.001313/0.001313, allocations: 196.4 kB / 16.91 MB, free: 5.746 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.274/1.274, allocations: 222.9 MB / 240.6 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00219/0.00219, allocations: 287 kB / 291 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8954/0.8954, allocations: 169.2 MB / 0.4985 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 88.53 kB / 0.5953 GB, free: 28.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1556/0.1572, allocations: 86.99 MB / 0.6803 GB, free: 1.051 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.004655/0.1619, allocations: 3.241 MB / 0.6834 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002012/0.164, allocations: 1.362 MB / 0.6848 GB, free: 12.44 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.1641, allocations: 4 kB / 0.6848 GB, free: 12.44 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009187/0.1651, allocations: 314.9 kB / 0.6851 GB, free: 12.13 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003161/0.1654, allocations: 141.4 kB / 0.6852 GB, free: 11.99 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003268/0.1657, allocations: 130.6 kB / 0.6853 GB, free: 11.87 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003451/0.1661, allocations: 332.6 kB / 0.6856 GB, free: 11.54 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004248/0.1665, allocations: 280 kB / 0.6859 GB, free: 11.27 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001697/0.1667, allocations: 139.5 kB / 0.686 GB, free: 11.14 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000246/0.167, allocations: 155.4 kB / 0.6862 GB, free: 10.98 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.207e-05/0.167, allocations: 20 kB / 0.6862 GB, free: 10.96 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000249/0.1672, allocations: 171.6 kB / 0.6864 GB, free: 10.8 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.326e-05/0.1673, allocations: 83.73 kB / 0.6865 GB, free: 10.71 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001163/0.1675, allocations: 119.4 kB / 0.6866 GB, free: 10.6 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003015/0.1678, allocations: 275.3 kB / 0.6868 GB, free: 10.33 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1678, allocations: 4 kB / 0.6868 GB, free: 10.32 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1678, allocations: 0 / 0.6868 GB, free: 10.32 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.1678, allocations: 0 / 0.6868 GB, free: 10.32 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.0007813/0.1686, allocations: 0.538 MB / 0.6874 GB, free: 9.738 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.1686, allocations: 12.03 kB / 0.6874 GB, free: 9.727 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005576/0.1692, allocations: 80.58 kB / 0.6875 GB, free: 9.648 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002617/0.1695, allocations: 257.8 kB / 0.6877 GB, free: 9.359 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.1695, allocations: 16.81 kB / 0.6877 GB, free: 9.344 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.249e-05/0.1695, allocations: 20.31 kB / 0.6877 GB, free: 9.324 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004662/0.17, allocations: 304.7 kB / 0.688 GB, free: 9.004 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.17, allocations: 4 kB / 0.688 GB, free: 9 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.684e-05/0.1701, allocations: 15.98 kB / 0.688 GB, free: 8.984 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.592e-05/0.1701, allocations: 24.36 kB / 0.6881 GB, free: 8.961 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003374/0.1704, allocations: 209.6 kB / 0.6883 GB, free: 8.758 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001426/0.1719, allocations: 1.49 MB / 0.6897 GB, free: 7.102 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003988/0.1723, allocations: 207.7 kB / 0.6899 GB, free: 6.871 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.889e-05/0.1724, allocations: 44.83 kB / 0.69 GB, free: 6.824 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.362e-05/0.1724, allocations: 3.938 kB / 0.69 GB, free: 6.82 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.251e-05/0.1724, allocations: 34.5 kB / 0.69 GB, free: 6.777 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.1724, allocations: 4 kB / 0.69 GB, free: 6.773 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005363/0.173, allocations: 263.4 kB / 0.6903 GB, free: 6.488 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.173, allocations: 51.41 kB / 0.6903 GB, free: 6.426 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001734/0.1732, allocations: 204.4 kB / 0.6905 GB, free: 6.219 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.1732, allocations: 29.7 kB / 0.6905 GB, free: 6.184 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.425e-05/0.1733, allocations: 175.7 kB / 0.6907 GB, free: 6.008 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.327e-05/0.1734, allocations: 31.55 kB / 0.6907 GB, free: 5.977 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.544e-05/0.1734, allocations: 37.66 kB / 0.6908 GB, free: 5.934 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.1736, allocations: 334.8 kB / 0.6911 GB, free: 5.598 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.333e-05/0.1737, allocations: 47.97 kB / 0.6911 GB, free: 5.551 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.1738, allocations: 108.5 kB / 0.6912 GB, free: 5.414 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002236/0.174, allocations: 172.4 kB / 0.6914 GB, free: 5.215 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.174, allocations: 0 / 0.6914 GB, free: 5.215 MB / 494.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003519/0.1744, allocations: 206 kB / 0.6916 GB, free: 5.004 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1744, allocations: 10.03 kB / 0.6916 GB, free: 4.996 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.1744, allocations: 288 / 0.6916 GB, free: 4.996 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001538/0.1746, allocations: 36.78 kB / 0.6916 GB, free: 4.957 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.1747, allocations: 31.92 kB / 0.6917 GB, free: 4.926 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001023/0.1758, allocations: 1.429 MB / 0.6931 GB, free: 3.355 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001332/0.1759, allocations: 23.83 kB / 0.6931 GB, free: 3.332 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.1759, allocations: 4 kB / 0.6931 GB, free: 3.328 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.0001208/0.176, allocations: 157.8 kB / 0.6932 GB, free: 3.164 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.704e-05/0.1761, allocations: 15.81 kB / 0.6933 GB, free: 3.148 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.252e-05/0.1761, allocations: 21.39 kB / 0.6933 GB, free: 3.133 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.1761, allocations: 0 / 0.6933 GB, free: 3.133 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.1761, allocations: 0 / 0.6933 GB, free: 3.133 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.1762, allocations: 0 / 0.6933 GB, free: 3.133 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005572/0.1767, allocations: 491.1 kB / 0.6937 GB, free: 2.594 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1767, allocations: 4 kB / 0.6937 GB, free: 2.59 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.315e-05/0.1768, allocations: 11.98 kB / 0.6938 GB, free: 2.578 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.288e-05/0.1769, allocations: 24.84 kB / 0.6938 GB, free: 2.551 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.1769, allocations: 0 / 0.6938 GB, free: 2.551 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009176/0.1778, allocations: 1.426 MB / 0.6952 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.1778, allocations: 0 / 0.6952 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002795/0.1781, allocations: 252.1 kB / 0.6954 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.799e-05/0.1782, allocations: 100.9 kB / 0.6955 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.172e-05/0.1782, allocations: 4 kB / 0.6955 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.1783, allocations: 4 kB / 0.6955 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.81e-05/0.1784, allocations: 11.98 kB / 0.6955 GB, free: 0.582 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.1784, allocations: 0 / 0.6955 GB, free: 0.582 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001247/0.1785, allocations: 153.5 kB / 0.6957 GB, free: 444 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1785, allocations: 4.094 kB / 0.6957 GB, free: 440 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.000309/0.1789, allocations: 63.72 kB / 0.6957 GB, free: 376 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.0001095/0.179, allocations: 95.25 kB / 0.6958 GB, free: 268 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003925/0.1794, allocations: 230.9 kB / 0.696 GB, free: 24 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.1794, allocations: 8.188 kB / 0.6961 GB, free: 16 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002155/0.1796, allocations: 158.6 kB / 0.6962 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003507/0.18, allocations: 42.59 kB / 0.6962 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006778/0.1807, allocations: 0.5092 MB / 0.6967 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/0.181, allocations: 0.7632 MB / 0.6975 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.159e-05/0.181, allocations: 15.44 kB / 0.6975 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.181, allocations: 0 / 0.6975 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of Templates: time 0.004666/0.1857, allocations: 3.223 MB / 0.7007 GB, free: 11.25 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.makefile (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 & ./BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1)