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.006958/0.006958, allocations: 102.6 kB / 15.73 MB, free: 6.492 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.001533/0.001533, allocations: 195 kB / 16.68 MB, free: 6.375 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002081/0.002081, allocations: 278.6 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9283/0.9283, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001716/0.001716, allocations: 99.84 kB / 0.6814 GB, free: 15.5 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.1492, allocations: 86.97 MB / 0.7664 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.004502/0.1538, allocations: 3.201 MB / 0.7695 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002203/0.156, allocations: 1.375 MB / 0.7708 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001777/0.1562, allocations: 4 kB / 0.7708 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0009906/0.1572, allocations: 348.4 kB / 0.7712 GB, free: 3.504 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003604/0.1576, allocations: 139.2 kB / 0.7713 GB, free: 3.367 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003671/0.158, allocations: 151.6 kB / 0.7714 GB, free: 3.219 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003951/0.1584, allocations: 330.6 kB / 0.7718 GB, free: 2.895 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004529/0.1588, allocations: 259.7 kB / 0.772 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002017/0.159, allocations: 143.5 kB / 0.7721 GB, free: 2.496 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002882/0.1593, allocations: 147.4 kB / 0.7723 GB, free: 2.352 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.448e-05/0.1594, allocations: 20 kB / 0.7723 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002802/0.1597, allocations: 167.6 kB / 0.7725 GB, free: 2.168 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.215e-05/0.1598, allocations: 87.78 kB / 0.7725 GB, free: 2.082 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001217/0.1599, allocations: 123.4 kB / 0.7727 GB, free: 1.961 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004175/0.1603, allocations: 354.9 kB / 0.773 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1603, allocations: 0 / 0.773 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.333e-06/0.1603, allocations: 0 / 0.773 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.783e-06/0.1604, allocations: 0 / 0.773 GB, free: 1.613 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.0007721/0.1611, allocations: 0.5456 MB / 0.7735 GB, free: 1.02 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.1612, allocations: 12.03 kB / 0.7735 GB, free: 1.008 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005627/0.1617, allocations: 84.58 kB / 0.7736 GB, free: 0.9258 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003191/0.1621, allocations: 251 kB / 0.7739 GB, free: 0.6445 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.1621, allocations: 20.73 kB / 0.7739 GB, free: 0.625 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.583e-05/0.1622, allocations: 20.38 kB / 0.7739 GB, free: 0.6055 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004771/0.1626, allocations: 316.7 kB / 0.7742 GB, free: 280 kB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.1627, allocations: 0 / 0.7742 GB, free: 280 kB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.926e-05/0.1627, allocations: 8 kB / 0.7742 GB, free: 272 kB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.785e-05/0.1627, allocations: 20.38 kB / 0.7742 GB, free: 252 kB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003511/0.1631, allocations: 209.6 kB / 0.7744 GB, free: 40 kB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.304/0.4671, allocations: 1.486 MB / 0.7759 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003878/0.4675, allocations: 200.4 kB / 0.7761 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.115e-05/0.4676, allocations: 45.77 kB / 0.7761 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.4677, allocations: 5.375 kB / 0.7761 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.526e-05/0.4677, allocations: 39.67 kB / 0.7762 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 2.034e-06/0.4677, allocations: 0 / 0.7762 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.0005118/0.4682, allocations: 262.8 kB / 0.7764 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.903e-05/0.4682, allocations: 54.62 kB / 0.7765 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001686/0.4684, allocations: 204.1 kB / 0.7767 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.101e-05/0.4684, allocations: 27.72 kB / 0.7767 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.557e-05/0.4685, allocations: 180 kB / 0.7769 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.841e-05/0.4685, allocations: 29.86 kB / 0.7769 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.801e-05/0.4686, allocations: 38.62 kB / 0.7769 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.701e-05/0.4686, allocations: 326.6 kB / 0.7772 GB, free: 13.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.241e-05/0.4687, allocations: 45.64 kB / 0.7773 GB, free: 13.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000108/0.4689, allocations: 111.2 kB / 0.7774 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001963/0.4691, allocations: 175 kB / 0.7776 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4691, allocations: 0.8125 kB / 0.7776 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003279/0.4694, allocations: 210.1 kB / 0.7778 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.4694, allocations: 6.125 kB / 0.7778 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.4694, allocations: 4 kB / 0.7778 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001487/0.4696, allocations: 30.47 kB / 0.7778 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.4697, allocations: 33.22 kB / 0.7778 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007123/0.4705, allocations: 1.429 MB / 0.7792 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/0.4706, allocations: 18.05 kB / 0.7792 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.4706, allocations: 13.89 kB / 0.7793 GB, free: 11.5 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 9.189e-05/0.4707, allocations: 141.8 kB / 0.7794 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.837e-05/0.4708, allocations: 19.78 kB / 0.7794 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.146e-05/0.4708, allocations: 20.59 kB / 0.7794 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.4708, allocations: 3.938 kB / 0.7794 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.4708, allocations: 0.875 kB / 0.7794 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.4708, allocations: 0.6094 kB / 0.7794 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000508/0.4713, allocations: 492.8 kB / 0.7799 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.4713, allocations: 6.141 kB / 0.7799 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.413e-05/0.4714, allocations: 11.31 kB / 0.7799 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.473e-05/0.4715, allocations: 28.5 kB / 0.7799 GB, free: 11 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.278e-06/0.4715, allocations: 0.75 kB / 0.7799 GB, free: 11 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006291/0.4722, allocations: 1.418 MB / 0.7813 GB, free: 9.586 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4722, allocations: 7.328 kB / 0.7813 GB, free: 9.582 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002379/0.4724, allocations: 242.6 kB / 0.7816 GB, free: 9.406 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.175e-05/0.4725, allocations: 99.08 kB / 0.7817 GB, free: 9.301 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.894e-05/0.4725, allocations: 1.484 kB / 0.7817 GB, free: 9.301 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.4726, allocations: 5.531 kB / 0.7817 GB, free: 9.301 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.563e-05/0.4727, allocations: 9.906 kB / 0.7817 GB, free: 9.297 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/0.4727, allocations: 2.891 kB / 0.7817 GB, free: 9.297 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001043/0.4728, allocations: 153.1 kB / 0.7818 GB, free: 9.199 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4728, allocations: 0 / 0.7818 GB, free: 9.199 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000321/0.4731, allocations: 59.53 kB / 0.7819 GB, free: 9.184 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 7.463e-05/0.4732, allocations: 101 kB / 0.782 GB, free: 9.094 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003705/0.4736, allocations: 231.5 kB / 0.7822 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4736, allocations: 2.25 kB / 0.7822 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001695/0.4738, allocations: 161.2 kB / 0.7824 GB, free: 8.82 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00034/0.4741, allocations: 39.98 kB / 0.7824 GB, free: 8.809 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000554/0.4747, allocations: 398.1 kB / 0.7828 GB, free: 8.574 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001732/0.4749, allocations: 0.754 MB / 0.7835 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.181e-05/0.475, allocations: 27.88 kB / 0.7835 GB, free: 7.867 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.552e-05/0.475, allocations: 14.81 kB / 0.7836 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of SimCode: time 2.3e-07/0.475, allocations: 1.062 kB / 0.7836 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of Templates: time 0.004485/0.4795, allocations: 1.951 MB / 0.7855 GB, free: 7.738 MB / 0.5606 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)