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.00127/0.00127, allocations: 98.83 kB / 16.35 MB, free: 5.824 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.001398/0.001398, allocations: 196.6 kB / 17.29 MB, free: 5.48 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.27/1.27, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002187/0.002187, allocations: 295.8 kB / 291.4 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8935/0.8935, allocations: 169.3 MB / 0.4989 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 95.98 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1729/0.1746, allocations: 86.97 MB / 0.6816 GB, free: 7.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.004766/0.1794, allocations: 3.215 MB / 0.6847 GB, free: 4.219 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002503/0.1819, allocations: 1.363 MB / 0.6861 GB, free: 2.848 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001808/0.1821, allocations: 7.938 kB / 0.6861 GB, free: 2.84 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001048/0.1833, allocations: 345.5 kB / 0.6864 GB, free: 2.504 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003791/0.1836, allocations: 143.2 kB / 0.6865 GB, free: 2.363 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000387/0.184, allocations: 143.6 kB / 0.6867 GB, free: 2.223 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000399/0.1845, allocations: 330.9 kB / 0.687 GB, free: 1.898 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004605/0.1849, allocations: 251.7 kB / 0.6872 GB, free: 1.648 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001892/0.1851, allocations: 143.5 kB / 0.6874 GB, free: 1.508 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002904/0.1854, allocations: 147.4 kB / 0.6875 GB, free: 1.363 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.399e-05/0.1855, allocations: 20 kB / 0.6875 GB, free: 1.344 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002827/0.1858, allocations: 167.7 kB / 0.6877 GB, free: 1.18 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.741e-05/0.1859, allocations: 83.78 kB / 0.6878 GB, free: 1.098 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001221/0.186, allocations: 127.4 kB / 0.6879 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004284/0.1864, allocations: 358.9 kB / 0.6882 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1864, allocations: 0 / 0.6882 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1864, allocations: 0 / 0.6882 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.1865, allocations: 0 / 0.6882 GB, free: 0.6211 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.0008614/0.1873, allocations: 0.538 MB / 0.6887 GB, free: 36 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.1874, allocations: 12.03 kB / 0.6888 GB, free: 24 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2986/0.486, allocations: 75.78 kB / 0.6888 GB, free: 18.61 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004007/0.4865, allocations: 254.3 kB / 0.6891 GB, free: 18.41 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.485e-05/0.4865, allocations: 14.44 kB / 0.6891 GB, free: 18.41 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.575e-05/0.4866, allocations: 18.75 kB / 0.6891 GB, free: 18.41 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005456/0.4871, allocations: 312 kB / 0.6894 GB, free: 18.34 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.4871, allocations: 1.188 kB / 0.6894 GB, free: 18.34 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.975e-05/0.4872, allocations: 16.95 kB / 0.6894 GB, free: 18.33 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.828e-05/0.4872, allocations: 21.73 kB / 0.6894 GB, free: 18.33 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004009/0.4876, allocations: 213.7 kB / 0.6896 GB, free: 18.32 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.4891, allocations: 1.498 MB / 0.6911 GB, free: 17.12 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004083/0.4895, allocations: 199.8 kB / 0.6913 GB, free: 17 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.356e-05/0.4896, allocations: 46.28 kB / 0.6913 GB, free: 17 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.396e-05/0.4896, allocations: 0 / 0.6913 GB, free: 17 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.735e-05/0.4896, allocations: 34.92 kB / 0.6914 GB, free: 16.96 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.4896, allocations: 0 / 0.6914 GB, free: 16.96 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005363/0.4902, allocations: 266.3 kB / 0.6916 GB, free: 16.81 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.959e-05/0.4902, allocations: 53.44 kB / 0.6917 GB, free: 16.75 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001789/0.4904, allocations: 204.6 kB / 0.6919 GB, free: 16.61 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.4904, allocations: 27.2 kB / 0.6919 GB, free: 16.58 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.026e-05/0.4905, allocations: 173.2 kB / 0.6921 GB, free: 16.43 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.879e-05/0.4905, allocations: 31.58 kB / 0.6921 GB, free: 16.41 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.687e-05/0.4906, allocations: 40.25 kB / 0.6921 GB, free: 16.38 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.691e-05/0.4906, allocations: 328.2 kB / 0.6924 GB, free: 16.06 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.679e-05/0.4907, allocations: 44.52 kB / 0.6925 GB, free: 16.05 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000112/0.4909, allocations: 121.1 kB / 0.6926 GB, free: 15.94 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.4911, allocations: 167 kB / 0.6928 GB, free: 15.82 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.4911, allocations: 2.75 kB / 0.6928 GB, free: 15.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003578/0.4914, allocations: 211.9 kB / 0.693 GB, free: 15.72 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.4915, allocations: 6.594 kB / 0.693 GB, free: 15.72 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.4915, allocations: 4.688 kB / 0.693 GB, free: 15.72 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001554/0.4916, allocations: 26.27 kB / 0.693 GB, free: 15.71 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.4918, allocations: 33.45 kB / 0.693 GB, free: 15.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007586/0.4925, allocations: 1.432 MB / 0.6944 GB, free: 14.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001435/0.4927, allocations: 22.75 kB / 0.6945 GB, free: 14.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.4927, allocations: 6.344 kB / 0.6945 GB, free: 14.27 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.0001077/0.4928, allocations: 152.2 kB / 0.6946 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.2e-05/0.4929, allocations: 20.34 kB / 0.6946 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.224e-05/0.4929, allocations: 20.33 kB / 0.6946 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.4929, allocations: 5.969 kB / 0.6947 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.4929, allocations: 2.281 kB / 0.6947 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.4929, allocations: 1.938 kB / 0.6947 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005754/0.4935, allocations: 497 kB / 0.6951 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.4935, allocations: 0.6094 kB / 0.6951 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.676e-05/0.4936, allocations: 14.31 kB / 0.6951 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.154e-05/0.4937, allocations: 23.22 kB / 0.6952 GB, free: 13.72 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.4937, allocations: 1.672 kB / 0.6952 GB, free: 13.72 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006588/0.4944, allocations: 1.419 MB / 0.6966 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.4944, allocations: 2.438 kB / 0.6966 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002572/0.4947, allocations: 245.2 kB / 0.6968 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.396e-05/0.4947, allocations: 99.19 kB / 0.6969 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.4948, allocations: 1.438 kB / 0.6969 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.4949, allocations: 8.422 kB / 0.6969 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.103e-05/0.4949, allocations: 9.875 kB / 0.6969 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.804e-06/0.495, allocations: 1.562 kB / 0.6969 GB, free: 12.02 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001156/0.4951, allocations: 151.5 kB / 0.6971 GB, free: 11.92 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4951, allocations: 7.828 kB / 0.6971 GB, free: 11.91 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003433/0.4954, allocations: 55.31 kB / 0.6971 GB, free: 11.9 MB / 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 8.598e-05/0.4955, allocations: 96.89 kB / 0.6972 GB, free: 11.82 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003739/0.4959, allocations: 235 kB / 0.6974 GB, free: 11.67 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.4959, allocations: 4.125 kB / 0.6974 GB, free: 11.67 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001778/0.4961, allocations: 163.8 kB / 0.6976 GB, free: 11.54 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003498/0.4965, allocations: 32.16 kB / 0.6976 GB, free: 11.54 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006027/0.4971, allocations: 387.1 kB / 0.698 GB, free: 11.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001929/0.4973, allocations: 0.758 MB / 0.6987 GB, free: 10.59 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001156/0.4974, allocations: 30.91 kB / 0.6988 GB, free: 10.59 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.563e-05/0.4974, allocations: 15.3 kB / 0.6988 GB, free: 10.58 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4975, allocations: 5.594 kB / 0.6988 GB, free: 10.58 MB / 494.1 MB Notification: Performance of Templates: time 0.005059/0.5025, allocations: 1.93 MB / 0.7007 GB, free: 10.45 MB / 494.1 MB 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1)