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.001475/0.001475, allocations: 104.2 kB / 16.27 MB, free: 6.414 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.001506/0.001506, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.376/1.376, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002192/0.002192, allocations: 295.6 kB / 291.3 MB, free: 14.51 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9939/0.9939, allocations: 169.2 MB / 0.4988 GB, free: 4.48 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002117/0.002117, allocations: 95.92 kB / 0.5959 GB, free: 15.14 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1847/0.1868, allocations: 86.98 MB / 0.6808 GB, free: 8.176 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad): time 0.005957/0.1928, allocations: 3.843 MB / 0.6846 GB, free: 4.309 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003007/0.1959, allocations: 1.757 MB / 0.6863 GB, free: 2.543 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003307/0.1962, allocations: 11.94 kB / 0.6863 GB, free: 2.531 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001418/0.1977, allocations: 464.9 kB / 0.6868 GB, free: 2.078 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006805/0.1984, allocations: 242.8 kB / 0.687 GB, free: 1.84 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000691/0.1991, allocations: 259.5 kB / 0.6872 GB, free: 1.586 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006653/0.1998, allocations: 498.4 kB / 0.6877 GB, free: 1.098 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006458/0.2004, allocations: 368.9 kB / 0.6881 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003019/0.2008, allocations: 195.3 kB / 0.6883 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004356/0.2012, allocations: 231.2 kB / 0.6885 GB, free: 328 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.559e-05/0.2013, allocations: 32 kB / 0.6885 GB, free: 296 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003852/0.2017, allocations: 183.6 kB / 0.6887 GB, free: 112 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.3182/0.5199, allocations: 128.9 kB / 0.6888 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003526/0.5203, allocations: 176.5 kB / 0.689 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007869/0.5211, allocations: 488.9 kB / 0.6894 GB, free: 12.66 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.5211, allocations: 0 / 0.6894 GB, free: 12.66 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.5211, allocations: 2.219 kB / 0.6894 GB, free: 12.66 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.5211, allocations: 0 / 0.6894 GB, free: 12.66 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.00105/0.5222, allocations: 0.6581 MB / 0.6901 GB, free: 12.22 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.5222, allocations: 9.812 kB / 0.6901 GB, free: 12.22 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005989/0.5228, allocations: 81.14 kB / 0.6902 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003074/0.5231, allocations: 293.6 kB / 0.6904 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/0.5232, allocations: 25.42 kB / 0.6905 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.638e-05/0.5232, allocations: 28.27 kB / 0.6905 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008032/0.524, allocations: 487.5 kB / 0.691 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.524, allocations: 5.953 kB / 0.691 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.838e-05/0.5241, allocations: 11.84 kB / 0.691 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.591e-05/0.5242, allocations: 39.52 kB / 0.691 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007627/0.5249, allocations: 370.4 kB / 0.6914 GB, free: 11.87 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001781/0.5267, allocations: 2.043 MB / 0.6934 GB, free: 10.34 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005648/0.5273, allocations: 223.2 kB / 0.6936 GB, free: 10.3 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003916/0.5277, allocations: 156.2 kB / 0.6937 GB, free: 10.29 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.5277, allocations: 6.906 kB / 0.6937 GB, free: 10.29 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.729e-05/0.5278, allocations: 34.7 kB / 0.6938 GB, free: 10.25 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.353e-06/0.5278, allocations: 1.219 kB / 0.6938 GB, free: 10.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=18): time 0.00108/0.5289, allocations: 422.9 kB / 0.6942 GB, free: 10.1 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.562e-05/0.5289, allocations: 57.98 kB / 0.6942 GB, free: 10.04 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002538/0.5292, allocations: 259.5 kB / 0.6945 GB, free: 9.934 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.824e-05/0.5292, allocations: 30.73 kB / 0.6945 GB, free: 9.902 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.5293, allocations: 209.8 kB / 0.6947 GB, free: 9.754 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.25e-05/0.5293, allocations: 61.02 kB / 0.6948 GB, free: 9.715 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.295e-05/0.5294, allocations: 60 kB / 0.6948 GB, free: 9.691 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.88e-05/0.5295, allocations: 338.9 kB / 0.6951 GB, free: 9.375 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/0.5298, allocations: 98.3 kB / 0.6952 GB, free: 9.363 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002981/0.5301, allocations: 205.8 kB / 0.6954 GB, free: 9.227 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005289/0.5306, allocations: 313.3 kB / 0.6957 GB, free: 9.09 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.656e-06/0.5307, allocations: 0.9688 kB / 0.6957 GB, free: 9.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007608/0.5314, allocations: 355.5 kB / 0.6961 GB, free: 9.035 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.5314, allocations: 7.25 kB / 0.6961 GB, free: 9.035 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.5315, allocations: 3.625 kB / 0.6961 GB, free: 9.035 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002059/0.5317, allocations: 38.34 kB / 0.6961 GB, free: 9.023 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002705/0.532, allocations: 65.56 kB / 0.6962 GB, free: 9.023 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009666/0.5329, allocations: 1.441 MB / 0.6976 GB, free: 7.668 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002601/0.5332, allocations: 40.14 kB / 0.6976 GB, free: 7.652 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.298e-05/0.5332, allocations: 15.55 kB / 0.6976 GB, free: 7.652 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003419/0.5336, allocations: 214.4 kB / 0.6978 GB, free: 7.57 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002955/0.5339, allocations: 215.5 kB / 0.6981 GB, free: 7.414 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004937/0.5344, allocations: 323.2 kB / 0.6984 GB, free: 7.258 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.266e-06/0.5344, allocations: 1.594 kB / 0.6984 GB, free: 7.258 MB / 494.1 MB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006599/0.5351, allocations: 333 kB / 0.6987 GB, free: 7.207 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.5351, allocations: 5.625 kB / 0.6987 GB, free: 7.207 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.5351, allocations: 5.531 kB / 0.6987 GB, free: 7.207 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.155e-06/0.5351, allocations: 6.062 kB / 0.6987 GB, free: 7.207 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002695/0.5354, allocations: 74.53 kB / 0.6988 GB, free: 7.203 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.5354, allocations: 14.19 kB / 0.6988 GB, free: 7.199 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002423/0.5356, allocations: 35.17 kB / 0.6988 GB, free: 7.191 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.5357, allocations: 11.31 kB / 0.6988 GB, free: 7.191 MB / 494.1 MB 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 9.046e-05/0.5358, allocations: 200.8 kB / 0.699 GB, free: 7.008 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.403e-05/0.5358, allocations: 33.97 kB / 0.699 GB, free: 6.988 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.429e-05/0.5359, allocations: 33.03 kB / 0.6991 GB, free: 6.984 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.5359, allocations: 1.75 kB / 0.6991 GB, free: 6.984 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.5359, allocations: 5.672 kB / 0.6991 GB, free: 6.98 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.5359, allocations: 0.6562 kB / 0.6991 GB, free: 6.98 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/0.5371, allocations: 0.7509 MB / 0.6998 GB, free: 6.586 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.5371, allocations: 0.8438 kB / 0.6998 GB, free: 6.586 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001913/0.5373, allocations: 37.72 kB / 0.6999 GB, free: 6.586 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001018/0.5374, allocations: 25.67 kB / 0.6999 GB, free: 6.578 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.512e-05/0.5374, allocations: 7.875 kB / 0.6999 GB, free: 6.578 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000743/0.5382, allocations: 1.435 MB / 0.7013 GB, free: 5.172 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.5382, allocations: 1.188 kB / 0.7013 GB, free: 5.172 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005982/0.5388, allocations: 369.9 kB / 0.7016 GB, free: 4.945 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.023e-05/0.5389, allocations: 115.9 kB / 0.7018 GB, free: 4.832 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.209e-05/0.5389, allocations: 2.734 kB / 0.7018 GB, free: 4.832 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001821/0.5391, allocations: 17.12 kB / 0.7018 GB, free: 4.828 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.897e-05/0.5392, allocations: 17.27 kB / 0.7018 GB, free: 4.824 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.28e-05/0.5392, allocations: 4.281 kB / 0.7018 GB, free: 4.824 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001729/0.5394, allocations: 183.4 kB / 0.702 GB, free: 4.723 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5394, allocations: 4 kB / 0.702 GB, free: 4.719 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0006149/0.54, allocations: 149 kB / 0.7021 GB, free: 4.68 MB / 494.1 MB 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.000105/0.5401, allocations: 105.3 kB / 0.7022 GB, free: 4.59 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0012/0.5413, allocations: 0.4967 MB / 0.7027 GB, free: 4.402 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.5413, allocations: 0 / 0.7027 GB, free: 4.402 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004072/0.5418, allocations: 226 kB / 0.7029 GB, free: 4.262 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005608/0.5423, allocations: 68.47 kB / 0.703 GB, free: 4.246 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.5436, allocations: 0.5996 MB / 0.7036 GB, free: 3.871 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003372/0.5439, allocations: 0.7987 MB / 0.7043 GB, free: 3.16 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.001e-05/0.544, allocations: 27.56 kB / 0.7044 GB, free: 3.148 MB / 494.1 MB Notification: Performance of SimCode: time 1.052e-06/0.544, allocations: 0 / 0.7044 GB, free: 3.148 MB / 494.1 MB Notification: Performance of Templates: time 0.008824/0.5529, allocations: 4.778 MB / 0.709 GB, free: 2.801 MB / 494.1 MB 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)