Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.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.LinearizedLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad") translateModel(BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001676/0.001676, allocations: 187.2 kB / 16.25 MB, free: 6.625 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.4/1.4, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001932/0.001932, allocations: 282.8 kB / 290.4 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9602/0.9602, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001636, allocations: 90.89 kB / 0.5947 GB, free: 28.36 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1842/0.1858, allocations: 86.99 MB / 0.6796 GB, free: 1.051 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.00606/0.1919, allocations: 4.111 MB / 0.6836 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002686/0.1947, allocations: 1.584 MB / 0.6852 GB, free: 11.35 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003287/0.195, allocations: 8 kB / 0.6852 GB, free: 11.34 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001573/0.1966, allocations: 0.556 MB / 0.6857 GB, free: 10.79 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006314/0.1973, allocations: 219 kB / 0.6859 GB, free: 10.57 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005329/0.1978, allocations: 195.7 kB / 0.6861 GB, free: 10.38 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005314/0.1983, allocations: 0.5412 MB / 0.6867 GB, free: 9.836 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006895/0.199, allocations: 0.5174 MB / 0.6872 GB, free: 9.316 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002179/0.1993, allocations: 231.3 kB / 0.6874 GB, free: 9.09 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003487/0.1996, allocations: 259.1 kB / 0.6876 GB, free: 8.836 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.823e-05/0.1997, allocations: 36 kB / 0.6877 GB, free: 8.801 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002534/0.1999, allocations: 163.7 kB / 0.6878 GB, free: 8.641 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001329/0.2001, allocations: 151.6 kB / 0.688 GB, free: 8.492 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000167/0.2003, allocations: 191.1 kB / 0.6882 GB, free: 8.305 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005347/0.2008, allocations: 0.5373 MB / 0.6887 GB, free: 7.766 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.2008, allocations: 0 / 0.6887 GB, free: 7.766 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2008, allocations: 0 / 0.6887 GB, free: 7.766 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.2008, allocations: 0 / 0.6887 GB, free: 7.766 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001237/0.2021, allocations: 0.6826 MB / 0.6893 GB, free: 7.035 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.2021, allocations: 12.03 kB / 0.6894 GB, free: 7.023 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007036/0.2028, allocations: 104.3 kB / 0.6895 GB, free: 6.922 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003757/0.2032, allocations: 295.6 kB / 0.6897 GB, free: 6.594 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.854e-05/0.2033, allocations: 55.27 kB / 0.6898 GB, free: 6.535 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.583e-05/0.2034, allocations: 32.38 kB / 0.6898 GB, free: 6.504 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008042/0.2042, allocations: 0.5087 MB / 0.6903 GB, free: 5.973 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.2042, allocations: 0 / 0.6903 GB, free: 5.973 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.172e-05/0.2043, allocations: 16 kB / 0.6903 GB, free: 5.957 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.392e-05/0.2043, allocations: 32.98 kB / 0.6904 GB, free: 5.926 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006422/0.205, allocations: 379.6 kB / 0.6907 GB, free: 5.555 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002239/0.2072, allocations: 2.212 MB / 0.6929 GB, free: 3.113 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006964/0.2079, allocations: 278.5 kB / 0.6932 GB, free: 2.832 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003572/0.2083, allocations: 146.3 kB / 0.6933 GB, free: 2.688 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.315e-05/0.2083, allocations: 4 kB / 0.6933 GB, free: 2.684 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.712e-05/0.2084, allocations: 38.56 kB / 0.6933 GB, free: 2.637 MB / 494.1 MB Notification: Performance of pre-optimization done (n=19): time 1.242e-06/0.2084, allocations: 0 / 0.6933 GB, free: 2.637 MB / 494.1 MB Notification: Performance of matching and sorting (n=19): time 0.001511/0.2099, allocations: 0.5688 MB / 0.6939 GB, free: 2.02 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.21, allocations: 51.41 kB / 0.6939 GB, free: 1.957 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002236/0.2102, allocations: 225 kB / 0.6942 GB, free: 1.727 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.043e-05/0.2102, allocations: 33.7 kB / 0.6942 GB, free: 1.688 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.2104, allocations: 203.7 kB / 0.6944 GB, free: 1.484 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.541e-05/0.2104, allocations: 74.94 kB / 0.6945 GB, free: 1.41 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.192e-05/0.2105, allocations: 57.64 kB / 0.6945 GB, free: 1.348 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.2106, allocations: 326.8 kB / 0.6948 GB, free: 1.02 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002217/0.2109, allocations: 100.8 kB / 0.6949 GB, free: 0.918 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002588/0.2111, allocations: 180.8 kB / 0.6951 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004384/0.2116, allocations: 275.4 kB / 0.6953 GB, free: 412 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.2116, allocations: 4 kB / 0.6954 GB, free: 408 kB / 494.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008194/0.2124, allocations: 374.8 kB / 0.6957 GB, free: 20 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.2125, allocations: 11.98 kB / 0.6957 GB, free: 8 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2125, allocations: 4 kB / 0.6957 GB, free: 4 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005183/0.213, allocations: 105.8 kB / 0.6958 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001999/0.2132, allocations: 51.91 kB / 0.6959 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003358/0.2166, allocations: 3.056 MB / 0.6989 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002415/0.2168, allocations: 35.67 kB / 0.6989 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.098e-05/0.2169, allocations: 12 kB / 0.6989 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003046/0.2172, allocations: 220.7 kB / 0.6991 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002488/0.2174, allocations: 176.2 kB / 0.6993 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004325/0.2179, allocations: 270.6 kB / 0.6995 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.627e-06/0.2179, allocations: 3.984 kB / 0.6995 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007486/0.2186, allocations: 348.5 kB / 0.6999 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.043e-05/0.2187, allocations: 7.938 kB / 0.6999 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.2187, allocations: 4 kB / 0.6999 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002887/0.219, allocations: 80.88 kB / 0.7 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002075/0.2192, allocations: 51.91 kB / 0.7 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001941/0.2211, allocations: 1.617 MB / 0.7016 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002584/0.2214, allocations: 27.83 kB / 0.7016 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.2214, allocations: 19.88 kB / 0.7016 GB, free: 9.434 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001479/0.2216, allocations: 200.9 kB / 0.7018 GB, free: 9.23 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.041e-05/0.2216, allocations: 23.66 kB / 0.7019 GB, free: 9.207 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.223e-05/0.2217, allocations: 34.17 kB / 0.7019 GB, free: 9.172 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.2217, allocations: 0 / 0.7019 GB, free: 9.172 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.2217, allocations: 0 / 0.7019 GB, free: 9.172 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.2217, allocations: 3.938 kB / 0.7019 GB, free: 9.168 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001422/0.2232, allocations: 0.8307 MB / 0.7027 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.2232, allocations: 0 / 0.7027 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001454/0.2233, allocations: 31.98 kB / 0.7027 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003901/0.2237, allocations: 113.6 kB / 0.7028 GB, free: 8.109 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.2238, allocations: 4 kB / 0.7028 GB, free: 8.105 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002996/0.2268, allocations: 3.02 MB / 0.7058 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2268, allocations: 0 / 0.7058 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007814/0.2276, allocations: 422.4 kB / 0.7062 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001111/0.2277, allocations: 112.8 kB / 0.7063 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.267e-05/0.2277, allocations: 8 kB / 0.7063 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.2279, allocations: 11.98 kB / 0.7063 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.579e-05/0.228, allocations: 15.98 kB / 0.7063 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.228, allocations: 4 kB / 0.7063 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001606/0.2282, allocations: 168.5 kB / 0.7065 GB, free: 4.035 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.2282, allocations: 0 / 0.7065 GB, free: 4.035 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006389/0.2288, allocations: 175.3 kB / 0.7067 GB, free: 3.863 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001327/0.229, allocations: 104.3 kB / 0.7068 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001865/0.2308, allocations: 0.772 MB / 0.7075 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.2309, allocations: 4 kB / 0.7075 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007355/0.2316, allocations: 369.8 kB / 0.7079 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004334/0.232, allocations: 63.03 kB / 0.7079 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.2331, allocations: 0.7228 MB / 0.7086 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003727/0.2335, allocations: 0.8107 MB / 0.7094 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002059/0.2337, allocations: 54.19 kB / 0.7095 GB, free: 0.8438 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.051e-05/0.2338, allocations: 19.44 kB / 0.7095 GB, free: 0.8242 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.2338, allocations: 0 / 0.7095 GB, free: 0.8242 MB / 0.4981 GB Notification: Performance of Templates: time 0.008578/0.2424, allocations: 4.559 MB / 0.714 GB, free: 12.3 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)