Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.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.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor") translateModel(BuildingSystems.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001137/0.001142, 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.00161/0.00161, allocations: 191.9 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.365/1.365, allocations: 222.9 MB / 239.9 MB, free: 4.488 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002011/0.002011, allocations: 274.8 kB / 290.3 MB, free: 2.113 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9487/0.9487, allocations: 169.2 MB / 0.4978 GB, free: 14.05 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 91.42 kB / 0.5947 GB, free: 28.34 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1872/0.1889, allocations: 86.99 MB / 0.6796 GB, free: 1.062 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.006047/0.195, allocations: 3.867 MB / 0.6834 GB, free: 13.19 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002615/0.1976, allocations: 1.715 MB / 0.6851 GB, free: 11.47 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002699/0.1979, allocations: 7.938 kB / 0.6851 GB, free: 11.46 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00145/0.1994, allocations: 465 kB / 0.6855 GB, free: 11.01 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005968/0.2, allocations: 208.1 kB / 0.6857 GB, free: 10.81 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006025/0.2006, allocations: 191.6 kB / 0.6859 GB, free: 10.62 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006132/0.2012, allocations: 482.3 kB / 0.6864 GB, free: 10.15 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006618/0.2019, allocations: 401.2 kB / 0.6868 GB, free: 9.758 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003155/0.2022, allocations: 195.3 kB / 0.6869 GB, free: 9.566 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004813/0.2027, allocations: 231.2 kB / 0.6872 GB, free: 9.34 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.452e-05/0.2028, allocations: 28 kB / 0.6872 GB, free: 9.312 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000451/0.2033, allocations: 239.4 kB / 0.6874 GB, free: 9.078 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001486/0.2034, allocations: 123.7 kB / 0.6875 GB, free: 8.957 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002104/0.2036, allocations: 171.2 kB / 0.6877 GB, free: 8.789 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000695/0.2043, allocations: 0.514 MB / 0.6882 GB, free: 8.273 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.2044, allocations: 8 kB / 0.6882 GB, free: 8.266 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2044, allocations: 0 / 0.6882 GB, free: 8.266 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.866e-05/0.2044, allocations: 0 / 0.6882 GB, free: 8.266 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001117/0.2055, allocations: 0.6237 MB / 0.6888 GB, free: 7.594 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.2055, allocations: 8.031 kB / 0.6888 GB, free: 7.586 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009126/0.2065, allocations: 144.4 kB / 0.689 GB, free: 7.445 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003764/0.2069, allocations: 279.7 kB / 0.6892 GB, free: 7.133 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.411e-05/0.2069, allocations: 25.02 kB / 0.6893 GB, free: 7.109 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.747e-05/0.2069, allocations: 28.38 kB / 0.6893 GB, free: 7.082 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006695/0.2076, allocations: 475.8 kB / 0.6897 GB, free: 6.578 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.2076, allocations: 4 kB / 0.6897 GB, free: 6.574 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.533e-05/0.2077, allocations: 12 kB / 0.6897 GB, free: 6.562 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.78e-05/0.2077, allocations: 28.55 kB / 0.6898 GB, free: 6.535 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000469/0.2082, allocations: 321.9 kB / 0.6901 GB, free: 6.223 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002165/0.2104, allocations: 2.189 MB / 0.6922 GB, free: 3.82 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003752/0.2108, allocations: 251.8 kB / 0.6925 GB, free: 3.547 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002442/0.211, allocations: 112.8 kB / 0.6926 GB, free: 3.434 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.2111, allocations: 4 kB / 0.6926 GB, free: 3.43 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.2111, allocations: 34.56 kB / 0.6926 GB, free: 3.387 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 3.256e-06/0.2111, allocations: 0 / 0.6926 GB, free: 3.387 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.000601/0.2117, allocations: 302 kB / 0.6929 GB, free: 3.066 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.264e-05/0.2117, allocations: 51.41 kB / 0.6929 GB, free: 3.004 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002649/0.212, allocations: 270.5 kB / 0.6932 GB, free: 2.738 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.212, allocations: 29.7 kB / 0.6932 GB, free: 2.703 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.2122, allocations: 207.8 kB / 0.6934 GB, free: 2.496 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.455e-05/0.2122, allocations: 47.36 kB / 0.6935 GB, free: 2.449 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.204e-05/0.2123, allocations: 45.86 kB / 0.6935 GB, free: 2.395 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.2124, allocations: 338.8 kB / 0.6938 GB, free: 2.055 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001/0.2125, allocations: 56.44 kB / 0.6939 GB, free: 2 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.2127, allocations: 149.9 kB / 0.694 GB, free: 1.816 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000256/0.2129, allocations: 220.7 kB / 0.6942 GB, free: 1.562 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.2129, allocations: 8 kB / 0.6943 GB, free: 1.555 MB / 494.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003977/0.2133, allocations: 257.9 kB / 0.6945 GB, free: 1.293 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.2134, allocations: 14.28 kB / 0.6945 GB, free: 1.281 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.2134, allocations: 0 / 0.6945 GB, free: 1.281 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001637/0.2136, allocations: 29.22 kB / 0.6945 GB, free: 1.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001831/0.2137, allocations: 51.91 kB / 0.6946 GB, free: 1.199 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001075/0.2148, allocations: 1.426 MB / 0.696 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001681/0.215, allocations: 23.75 kB / 0.696 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.215, allocations: 8 kB / 0.696 GB, free: 15.6 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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): 26 * 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.0001632/0.2152, allocations: 179 kB / 0.6962 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.628e-05/0.2153, allocations: 23.72 kB / 0.6962 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.729e-05/0.2153, allocations: 29.83 kB / 0.6962 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.2153, allocations: 0 / 0.6962 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.2153, allocations: 0 / 0.6962 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.2153, allocations: 0 / 0.6962 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008473/0.2162, allocations: 0.7064 MB / 0.6969 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.2162, allocations: 4.062 kB / 0.6969 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.418e-05/0.2163, allocations: 23.94 kB / 0.6969 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.228e-05/0.2164, allocations: 28.78 kB / 0.697 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.2164, allocations: 12.19 kB / 0.697 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009145/0.2173, allocations: 1.418 MB / 0.6984 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.2173, allocations: 0 / 0.6984 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003137/0.2177, allocations: 314.9 kB / 0.6987 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.2178, allocations: 116.8 kB / 0.6988 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.146e-05/0.2178, allocations: 7.984 kB / 0.6988 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000164/0.218, allocations: 12 kB / 0.6988 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.97e-05/0.218, allocations: 19.86 kB / 0.6988 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.218, allocations: 12 kB / 0.6988 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001733/0.2182, allocations: 190 kB / 0.699 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3e-07/0.2182, allocations: 0 / 0.699 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003806/0.2186, allocations: 71.84 kB / 0.6991 GB, free: 12.16 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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.0001261/0.2187, allocations: 103.2 kB / 0.6992 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004536/0.2192, allocations: 290.2 kB / 0.6995 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.2192, allocations: 0 / 0.6995 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002046/0.2194, allocations: 179.7 kB / 0.6996 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004742/0.2199, allocations: 70.42 kB / 0.6997 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009356/0.2209, allocations: 0.665 MB / 0.7003 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003738/0.2212, allocations: 0.7909 MB / 0.7011 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001568/0.2214, allocations: 42.27 kB / 0.7012 GB, free: 9.926 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.311e-05/0.2215, allocations: 19.44 kB / 0.7012 GB, free: 9.906 MB / 0.4981 GB Notification: Performance of SimCode: time 3.61e-07/0.2215, allocations: 0 / 0.7012 GB, free: 9.906 MB / 0.4981 GB Notification: Performance of Templates: time 0.006733/0.2282, allocations: 2.689 MB / 0.7038 GB, free: 7.25 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)