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.001497/0.001497, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001659/0.001659, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.452/1.452, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003294/0.003294, allocations: 274.9 kB / 290.2 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9082/0.9082, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 93.56 kB / 0.5945 GB, free: 28.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1394, allocations: 86.98 MB / 0.6794 GB, free: 1.203 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad): time 0.005411/0.1448, allocations: 3.882 MB / 0.6832 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002643/0.1475, allocations: 1.773 MB / 0.685 GB, free: 11.54 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.1477, allocations: 7.938 kB / 0.685 GB, free: 11.53 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001102/0.1488, allocations: 414.7 kB / 0.6854 GB, free: 11.12 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004642/0.1493, allocations: 239 kB / 0.6856 GB, free: 10.89 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005249/0.1498, allocations: 222.5 kB / 0.6858 GB, free: 10.67 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006115/0.1504, allocations: 0.709 MB / 0.6865 GB, free: 9.961 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003701/0.1508, allocations: 240.9 kB / 0.6867 GB, free: 9.727 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001869/0.151, allocations: 167.3 kB / 0.6869 GB, free: 9.562 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003321/0.1514, allocations: 239.2 kB / 0.6871 GB, free: 9.328 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.558e-05/0.1514, allocations: 20 kB / 0.6871 GB, free: 9.309 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003577/0.1518, allocations: 235.5 kB / 0.6874 GB, free: 9.078 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001359/0.1519, allocations: 127.6 kB / 0.6875 GB, free: 8.953 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001668/0.1521, allocations: 167.1 kB / 0.6876 GB, free: 8.789 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004909/0.1526, allocations: 498.3 kB / 0.6881 GB, free: 8.301 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1526, allocations: 0 / 0.6881 GB, free: 8.301 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.1526, allocations: 0 / 0.6881 GB, free: 8.301 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.1526, allocations: 4 kB / 0.6881 GB, free: 8.297 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.001105/0.1537, allocations: 0.651 MB / 0.6888 GB, free: 7.598 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.1538, allocations: 12.03 kB / 0.6888 GB, free: 7.586 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005411/0.1543, allocations: 84.41 kB / 0.6888 GB, free: 7.504 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003368/0.1547, allocations: 291.6 kB / 0.6891 GB, free: 7.18 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.1547, allocations: 21.03 kB / 0.6891 GB, free: 7.16 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.279e-05/0.1548, allocations: 36.36 kB / 0.6892 GB, free: 7.125 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007659/0.1555, allocations: 490 kB / 0.6896 GB, free: 6.613 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.1556, allocations: 3.938 kB / 0.6897 GB, free: 6.609 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.138e-05/0.1556, allocations: 16 kB / 0.6897 GB, free: 6.594 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.588e-05/0.1557, allocations: 40.62 kB / 0.6897 GB, free: 6.551 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007122/0.1564, allocations: 358.3 kB / 0.69 GB, free: 6.203 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002024/0.1584, allocations: 2.048 MB / 0.692 GB, free: 3.953 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00054/0.159, allocations: 214.7 kB / 0.6923 GB, free: 3.734 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003747/0.1594, allocations: 156.8 kB / 0.6924 GB, free: 3.578 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.1594, allocations: 3.984 kB / 0.6924 GB, free: 3.574 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.1594, allocations: 46.47 kB / 0.6924 GB, free: 3.52 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.473e-06/0.1594, allocations: 0 / 0.6924 GB, free: 3.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=18): time 0.001065/0.1605, allocations: 421.5 kB / 0.6929 GB, free: 3.082 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.053e-05/0.1606, allocations: 51.41 kB / 0.6929 GB, free: 3.02 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002408/0.1608, allocations: 258.7 kB / 0.6931 GB, free: 2.766 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.1608, allocations: 33.7 kB / 0.6932 GB, free: 2.727 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.161, allocations: 207.6 kB / 0.6934 GB, free: 2.52 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.717e-05/0.161, allocations: 71.09 kB / 0.6934 GB, free: 2.449 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.381e-05/0.1611, allocations: 49.98 kB / 0.6935 GB, free: 2.391 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.1612, allocations: 342.8 kB / 0.6938 GB, free: 2.047 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002583/0.1615, allocations: 97.91 kB / 0.6939 GB, free: 1.949 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003122/0.1618, allocations: 207.5 kB / 0.6941 GB, free: 1.695 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005409/0.1624, allocations: 309.4 kB / 0.6944 GB, free: 1.344 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1624, allocations: 0 / 0.6944 GB, free: 1.344 MB / 494.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007562/0.1631, allocations: 368.5 kB / 0.6948 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.1632, allocations: 4 kB / 0.6948 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.1632, allocations: 4 kB / 0.6948 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001985/0.1634, allocations: 32.83 kB / 0.6948 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002776/0.1637, allocations: 67.89 kB / 0.6949 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001205/0.1649, allocations: 1.335 MB / 0.6962 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002543/0.1652, allocations: 47.58 kB / 0.6962 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.1652, allocations: 16 kB / 0.6962 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003494/0.1656, allocations: 217.2 kB / 0.6964 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003153/0.1659, allocations: 218.1 kB / 0.6966 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005203/0.1664, allocations: 315.1 kB / 0.6969 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.783e-06/0.1664, allocations: 0 / 0.6969 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006512/0.1671, allocations: 336.2 kB / 0.6973 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.866e-06/0.1671, allocations: 4 kB / 0.6973 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.1671, allocations: 7.938 kB / 0.6973 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.184e-06/0.1671, allocations: 8 kB / 0.6973 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002804/0.1674, allocations: 71.89 kB / 0.6973 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.1674, allocations: 11.94 kB / 0.6974 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002405/0.1677, allocations: 36.14 kB / 0.6974 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.1677, allocations: 16 kB / 0.6974 GB, free: 14.01 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.0001249/0.1678, allocations: 196.8 kB / 0.6976 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.14e-05/0.1679, allocations: 31.66 kB / 0.6976 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.833e-05/0.1679, allocations: 30.17 kB / 0.6977 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.168, allocations: 8.031 kB / 0.6977 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.168, allocations: 0 / 0.6977 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.168, allocations: 3.984 kB / 0.6977 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.1691, allocations: 0.7459 MB / 0.6984 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.1691, allocations: 12.05 kB / 0.6984 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000187/0.1693, allocations: 35.98 kB / 0.6984 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001075/0.1694, allocations: 28.83 kB / 0.6985 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.1695, allocations: 0 / 0.6985 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009469/0.1704, allocations: 1.316 MB / 0.6998 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1704, allocations: 4 kB / 0.6998 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006237/0.1711, allocations: 370.1 kB / 0.7001 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.1712, allocations: 128.7 kB / 0.7002 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.04e-05/0.1712, allocations: 0 / 0.7002 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001929/0.1714, allocations: 19.98 kB / 0.7003 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.842e-05/0.1715, allocations: 19.97 kB / 0.7003 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.282e-05/0.1715, allocations: 4 kB / 0.7003 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001693/0.1717, allocations: 186 kB / 0.7005 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.393e-06/0.1717, allocations: 0 / 0.7005 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005862/0.1723, allocations: 147.5 kB / 0.7006 GB, free: 10.48 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.0001029/0.1724, allocations: 99.25 kB / 0.7007 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009906/0.1734, allocations: 491.8 kB / 0.7012 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1734, allocations: 3.938 kB / 0.7012 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003242/0.1737, allocations: 218.6 kB / 0.7014 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005008/0.1742, allocations: 73.11 kB / 0.7014 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008889/0.1751, allocations: 0.6778 MB / 0.7021 GB, free: 8.875 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/0.1755, allocations: 0.7996 MB / 0.7029 GB, free: 8.047 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002289/0.1757, allocations: 70.31 kB / 0.7029 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.771e-05/0.1758, allocations: 23.44 kB / 0.703 GB, free: 7.957 MB / 0.4981 GB Notification: Performance of SimCode: time 3.3e-07/0.1758, allocations: 0 / 0.703 GB, free: 7.957 MB / 0.4981 GB Notification: Performance of Templates: time 0.006639/0.1824, allocations: 3.24 MB / 0.7061 GB, free: 4.75 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)