Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.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.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad") translateModel(BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001278, 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.001461/0.001461, allocations: 195.6 kB / 16.25 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.379/1.379, allocations: 222.9 MB / 239.9 MB, free: 4.52 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: 278.4 kB / 290.4 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9919/0.9919, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001795, allocations: 90.94 kB / 0.5947 GB, free: 28.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1767/0.1786, allocations: 86.99 MB / 0.6796 GB, free: 1.027 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad): time 0.006065/0.1847, allocations: 3.872 MB / 0.6834 GB, free: 13.15 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002971/0.1877, allocations: 1.758 MB / 0.6851 GB, free: 11.39 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002936/0.188, allocations: 4.531 kB / 0.6851 GB, free: 11.38 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001316/0.1894, allocations: 428.6 kB / 0.6855 GB, free: 10.96 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006987/0.1901, allocations: 231 kB / 0.6858 GB, free: 10.74 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006701/0.1908, allocations: 230.4 kB / 0.686 GB, free: 10.52 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006173/0.1914, allocations: 0.4984 MB / 0.6865 GB, free: 10.02 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005944/0.192, allocations: 404.8 kB / 0.6869 GB, free: 9.621 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002186/0.1922, allocations: 199.3 kB / 0.687 GB, free: 9.426 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000353/0.1926, allocations: 243.1 kB / 0.6873 GB, free: 9.188 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.446e-05/0.1926, allocations: 28 kB / 0.6873 GB, free: 9.16 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003289/0.193, allocations: 187.5 kB / 0.6875 GB, free: 8.977 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.1931, allocations: 131.6 kB / 0.6876 GB, free: 8.848 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.1933, allocations: 183.1 kB / 0.6878 GB, free: 8.668 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000514/0.1938, allocations: 0.4906 MB / 0.6883 GB, free: 8.176 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1938, allocations: 0 / 0.6883 GB, free: 8.176 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1938, allocations: 4 kB / 0.6883 GB, free: 8.172 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.1938, allocations: 4 kB / 0.6883 GB, free: 8.168 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.001103/0.1949, allocations: 0.6548 MB / 0.6889 GB, free: 7.465 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.195, allocations: 8.031 kB / 0.6889 GB, free: 7.457 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005342/0.1955, allocations: 84.41 kB / 0.689 GB, free: 7.375 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003491/0.1959, allocations: 291.6 kB / 0.6893 GB, free: 7.051 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.203e-05/0.1959, allocations: 21.02 kB / 0.6893 GB, free: 7.031 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.232e-05/0.196, allocations: 28.38 kB / 0.6893 GB, free: 7.004 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007863/0.1968, allocations: 490 kB / 0.6898 GB, free: 6.492 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.1968, allocations: 0 / 0.6898 GB, free: 6.492 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.837e-05/0.1968, allocations: 15.98 kB / 0.6898 GB, free: 6.477 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.014e-05/0.1969, allocations: 44.61 kB / 0.6898 GB, free: 6.43 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000697/0.1976, allocations: 362.2 kB / 0.6902 GB, free: 6.078 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002138/0.1998, allocations: 2.044 MB / 0.6922 GB, free: 3.832 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005638/0.2003, allocations: 214.6 kB / 0.6924 GB, free: 3.613 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003889/0.2007, allocations: 160.8 kB / 0.6925 GB, free: 3.453 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.833e-05/0.2008, allocations: 3.984 kB / 0.6925 GB, free: 3.449 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.063e-05/0.2008, allocations: 38.47 kB / 0.6926 GB, free: 3.402 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.233e-06/0.2008, allocations: 0 / 0.6926 GB, free: 3.402 MB / 494.1 MB Notification: Performance of matching and sorting (n=18): time 0.001096/0.2019, allocations: 424.7 kB / 0.693 GB, free: 2.961 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.634e-05/0.202, allocations: 55.41 kB / 0.693 GB, free: 2.895 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002645/0.2022, allocations: 254.7 kB / 0.6933 GB, free: 2.645 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.13e-05/0.2023, allocations: 29.7 kB / 0.6933 GB, free: 2.609 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.2024, allocations: 211.6 kB / 0.6935 GB, free: 2.398 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.944e-05/0.2025, allocations: 71.09 kB / 0.6936 GB, free: 2.328 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.904e-05/0.2026, allocations: 53.98 kB / 0.6936 GB, free: 2.266 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.2027, allocations: 338.8 kB / 0.694 GB, free: 1.926 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002437/0.203, allocations: 93.92 kB / 0.694 GB, free: 1.832 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003024/0.2033, allocations: 203.5 kB / 0.6942 GB, free: 1.582 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005425/0.2038, allocations: 315.6 kB / 0.6945 GB, free: 1.227 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.2038, allocations: 3.938 kB / 0.6945 GB, free: 1.223 MB / 494.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007419/0.2046, allocations: 358 kB / 0.6949 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.2046, allocations: 4 kB / 0.6949 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.2046, allocations: 7.938 kB / 0.6949 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002022/0.2048, allocations: 32.84 kB / 0.6949 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000276/0.2051, allocations: 72.08 kB / 0.695 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001313/0.2065, allocations: 1.44 MB / 0.6964 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002677/0.2067, allocations: 43.58 kB / 0.6964 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.279e-05/0.2068, allocations: 16 kB / 0.6965 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003386/0.2071, allocations: 221.3 kB / 0.6967 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000302/0.2074, allocations: 217.5 kB / 0.6969 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005092/0.2079, allocations: 315.1 kB / 0.6972 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.715e-06/0.208, allocations: 0 / 0.6972 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006704/0.2086, allocations: 344.5 kB / 0.6975 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.2087, allocations: 8.062 kB / 0.6975 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.2087, allocations: 4 kB / 0.6975 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.322e-06/0.2087, allocations: 8 kB / 0.6975 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002623/0.2089, allocations: 67.89 kB / 0.6976 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.209, allocations: 8 kB / 0.6976 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002357/0.2092, allocations: 27.83 kB / 0.6976 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.168e-05/0.2092, allocations: 16 kB / 0.6976 GB, free: 13.79 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (32): * Single equations (assignments): 31 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001364/0.2094, allocations: 208.7 kB / 0.6978 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.123e-05/0.2094, allocations: 27.72 kB / 0.6979 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.786e-05/0.2095, allocations: 30.17 kB / 0.6979 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.2095, allocations: 4 kB / 0.6979 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.2095, allocations: 0 / 0.6979 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.2095, allocations: 3.984 kB / 0.6979 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.2107, allocations: 0.7499 MB / 0.6986 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.2107, allocations: 7.938 kB / 0.6986 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001791/0.2109, allocations: 39.91 kB / 0.6987 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001124/0.211, allocations: 32.89 kB / 0.6987 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.211, allocations: 4 kB / 0.6987 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/0.2121, allocations: 1.422 MB / 0.7001 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.2121, allocations: 0 / 0.7001 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006618/0.2128, allocations: 373.6 kB / 0.7005 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.2129, allocations: 120.7 kB / 0.7006 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.199e-05/0.2129, allocations: 4 kB / 0.7006 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001841/0.2131, allocations: 19.98 kB / 0.7006 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.939e-05/0.2132, allocations: 15.98 kB / 0.7006 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.2132, allocations: 7.938 kB / 0.7006 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001679/0.2134, allocations: 190 kB / 0.7008 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.392e-06/0.2134, allocations: 0 / 0.7008 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005658/0.2139, allocations: 139.5 kB / 0.7009 GB, free: 10.14 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001137/0.2141, allocations: 107.2 kB / 0.701 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001083/0.2152, allocations: 0.5008 MB / 0.7015 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.2152, allocations: 0 / 0.7015 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003429/0.2155, allocations: 220.6 kB / 0.7017 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005221/0.216, allocations: 79.23 kB / 0.7018 GB, free: 9.211 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001032/0.2171, allocations: 0.6739 MB / 0.7025 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003941/0.2175, allocations: 0.8035 MB / 0.7033 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002501/0.2178, allocations: 66.23 kB / 0.7033 GB, free: 7.609 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.575e-05/0.2178, allocations: 19.44 kB / 0.7033 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.2178, allocations: 0 / 0.7033 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of Templates: time 0.007691/0.2255, allocations: 3.414 MB / 0.7067 GB, free: 4.219 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1)