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.0009313/0.0009313, allocations: 91.53 kB / 15.06 MB, free: 1.098 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.001174/0.001174, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 223.3 MB / 240 MB, free: 5.219 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001828/0.001828, allocations: 263 kB / 291.3 MB, free: 1.777 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.942/0.942, allocations: 169.5 MB / 0.5 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004185/0.0004185, allocations: 12.34 kB / 0.598 GB, free: 28.37 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1751/0.1756, allocations: 88.55 MB / 0.6845 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad): time 0.003938/0.1795, allocations: 3.362 MB / 0.6878 GB, free: 12.11 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002404/0.182, allocations: 1.649 MB / 0.6894 GB, free: 10.45 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001667/0.1822, allocations: 12.44 kB / 0.6894 GB, free: 10.44 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002044/0.1824, allocations: 59.5 kB / 0.6894 GB, free: 10.38 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004305/0.1828, allocations: 190.3 kB / 0.6896 GB, free: 10.2 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005204/0.1834, allocations: 196.8 kB / 0.6898 GB, free: 10.01 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005938/0.184, allocations: 0.5607 MB / 0.6904 GB, free: 9.449 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004166/0.1844, allocations: 345.5 kB / 0.6907 GB, free: 9.09 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002008/0.1846, allocations: 159.4 kB / 0.6908 GB, free: 8.934 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003785/0.185, allocations: 219.3 kB / 0.6911 GB, free: 8.719 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.091e-05/0.185, allocations: 16 kB / 0.6911 GB, free: 8.703 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002178/0.1853, allocations: 83.81 kB / 0.6911 GB, free: 8.621 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.1854, allocations: 119.7 kB / 0.6913 GB, free: 8.504 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.149e-05/0.1855, allocations: 77.58 kB / 0.6913 GB, free: 8.422 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000374/0.1859, allocations: 367 kB / 0.6917 GB, free: 8.062 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.1859, allocations: 0 / 0.6917 GB, free: 8.062 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1859, allocations: 0 / 0.6917 GB, free: 8.062 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.1859, allocations: 0 / 0.6917 GB, free: 8.062 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.001006/0.1869, allocations: 0.608 MB / 0.6923 GB, free: 7.406 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.1869, allocations: 8.031 kB / 0.6923 GB, free: 7.398 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000496/0.1874, allocations: 87.56 kB / 0.6924 GB, free: 7.312 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003325/0.1878, allocations: 286.4 kB / 0.6926 GB, free: 6.992 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.319e-05/0.1878, allocations: 20.66 kB / 0.6927 GB, free: 6.973 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.248e-05/0.1879, allocations: 31.98 kB / 0.6927 GB, free: 6.941 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007246/0.1886, allocations: 489.8 kB / 0.6932 GB, free: 6.434 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.1886, allocations: 7.938 kB / 0.6932 GB, free: 6.426 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.213e-05/0.1887, allocations: 12 kB / 0.6932 GB, free: 6.414 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-05/0.1887, allocations: 36.62 kB / 0.6932 GB, free: 6.375 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006812/0.1894, allocations: 386.3 kB / 0.6936 GB, free: 6 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001892/0.1913, allocations: 2.052 MB / 0.6956 GB, free: 3.746 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005094/0.1918, allocations: 218.8 kB / 0.6958 GB, free: 3.523 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003419/0.1922, allocations: 176.7 kB / 0.696 GB, free: 3.348 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.112e-05/0.1922, allocations: 0 / 0.696 GB, free: 3.348 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.338e-05/0.1923, allocations: 42.5 kB / 0.696 GB, free: 3.297 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.072e-06/0.1923, allocations: 0 / 0.696 GB, free: 3.297 MB / 494.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009891/0.1933, allocations: 458.3 kB / 0.6964 GB, free: 2.824 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/0.1933, allocations: 55.41 kB / 0.6965 GB, free: 2.758 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002518/0.1936, allocations: 262.6 kB / 0.6967 GB, free: 2.496 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.1936, allocations: 29.7 kB / 0.6968 GB, free: 2.461 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.1937, allocations: 207.7 kB / 0.697 GB, free: 2.254 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.826e-05/0.1938, allocations: 70.97 kB / 0.697 GB, free: 2.184 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.57e-05/0.1938, allocations: 8 kB / 0.697 GB, free: 2.176 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1939, allocations: 338.8 kB / 0.6974 GB, free: 1.836 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002252/0.1942, allocations: 100.4 kB / 0.6975 GB, free: 1.734 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002851/0.1945, allocations: 211.6 kB / 0.6977 GB, free: 1.477 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002545/0.1947, allocations: 131.8 kB / 0.6978 GB, free: 1.348 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1947, allocations: 4 kB / 0.6978 GB, free: 1.344 MB / 494.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006869/0.1954, allocations: 376.3 kB / 0.6982 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001361/0.1956, allocations: 194 kB / 0.6983 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.1956, allocations: 4 kB / 0.6983 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001982/0.1958, allocations: 36.83 kB / 0.6984 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002583/0.1961, allocations: 75.89 kB / 0.6985 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001097/0.1972, allocations: 1.323 MB / 0.6997 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002263/0.1974, allocations: 47.58 kB / 0.6998 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.1974, allocations: 16 kB / 0.6998 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/0.1975, allocations: 4.094 kB / 0.6998 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005491/0.198, allocations: 295.7 kB / 0.7001 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.367e-06/0.198, allocations: 4 kB / 0.7001 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.135e-06/0.198, allocations: 8 kB / 0.7001 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002584/0.1983, allocations: 80.11 kB / 0.7002 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.1983, allocations: 7.938 kB / 0.7002 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000186/0.1985, allocations: 43.72 kB / 0.7002 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.796e-05/0.1985, allocations: 16 kB / 0.7002 GB, free: 14.64 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002091/0.1988, allocations: 249.6 kB / 0.7005 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.921e-05/0.1988, allocations: 27.72 kB / 0.7005 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.711e-05/0.1989, allocations: 34.16 kB / 0.7005 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.1989, allocations: 4 kB / 0.7005 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.1989, allocations: 0 / 0.7005 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1989, allocations: 0 / 0.7005 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.2, allocations: 0.7796 MB / 0.7013 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2001, allocations: 0 / 0.7013 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001766/0.2002, allocations: 43.97 kB / 0.7013 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.875e-05/0.2003, allocations: 24.84 kB / 0.7014 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.2004, allocations: 11.89 kB / 0.7014 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000831/0.2012, allocations: 1.311 MB / 0.7027 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.359e-06/0.2012, allocations: 4.188 kB / 0.7027 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005561/0.2018, allocations: 394.6 kB / 0.703 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.617e-05/0.2019, allocations: 116.8 kB / 0.7032 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.902e-05/0.2019, allocations: 7.938 kB / 0.7032 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001674/0.2021, allocations: 27.98 kB / 0.7032 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.89e-05/0.2021, allocations: 11.98 kB / 0.7032 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.655e-05/0.2022, allocations: 12 kB / 0.7032 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001494/0.2023, allocations: 182 kB / 0.7034 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2023, allocations: 0 / 0.7034 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005355/0.2029, allocations: 139.6 kB / 0.7035 GB, free: 11.02 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001103/0.203, allocations: 107.2 kB / 0.7036 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009953/0.204, allocations: 0.511 MB / 0.7041 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.204, allocations: 0 / 0.7041 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003166/0.2043, allocations: 229.5 kB / 0.7043 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004729/0.2048, allocations: 74.05 kB / 0.7044 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000822/0.2056, allocations: 0.6713 MB / 0.7051 GB, free: 9.371 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.206, allocations: 0.7996 MB / 0.7058 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002091/0.2062, allocations: 70.22 kB / 0.7059 GB, free: 8.477 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.182e-05/0.2063, allocations: 19.44 kB / 0.7059 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.2063, allocations: 0 / 0.7059 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of Templates: time 0.006511/0.2128, allocations: 3.119 MB / 0.709 GB, free: 5.383 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)