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.0009429/0.0009429, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.005836/0.005836, allocations: 171.7 kB / 16.27 MB, free: 6.656 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.307/1.307, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001757/0.001757, allocations: 278.9 kB / 291.7 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.021/1.021, allocations: 169.5 MB / 0.5004 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004201/0.00042, allocations: 15.22 kB / 0.5986 GB, free: 28.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1579, allocations: 88.55 MB / 0.6851 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad): time 0.004143/0.1621, allocations: 3.51 MB / 0.6885 GB, free: 11.57 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002553/0.1647, allocations: 1.736 MB / 0.6902 GB, free: 9.828 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.1649, allocations: 4 kB / 0.6902 GB, free: 9.824 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001953/0.1651, allocations: 59.5 kB / 0.6903 GB, free: 9.766 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005039/0.1656, allocations: 229.5 kB / 0.6905 GB, free: 9.543 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00052/0.1661, allocations: 233.9 kB / 0.6907 GB, free: 9.316 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006282/0.1668, allocations: 0.7065 MB / 0.6914 GB, free: 8.609 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004203/0.1672, allocations: 361.3 kB / 0.6918 GB, free: 8.238 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001765/0.1674, allocations: 159.3 kB / 0.6919 GB, free: 8.082 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003296/0.1677, allocations: 223.1 kB / 0.6921 GB, free: 7.863 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.489e-05/0.1678, allocations: 16 kB / 0.6922 GB, free: 7.848 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003326/0.1681, allocations: 227.5 kB / 0.6924 GB, free: 7.625 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.1682, allocations: 111.7 kB / 0.6925 GB, free: 7.516 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001455/0.1684, allocations: 184.8 kB / 0.6927 GB, free: 7.328 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004526/0.1688, allocations: 486.3 kB / 0.6931 GB, free: 6.852 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1689, allocations: 0 / 0.6931 GB, free: 6.852 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.1689, allocations: 4 kB / 0.6931 GB, free: 6.848 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.1689, allocations: 3.938 kB / 0.6931 GB, free: 6.844 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.0009466/0.1698, allocations: 0.6121 MB / 0.6937 GB, free: 6.184 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.1699, allocations: 8.031 kB / 0.6937 GB, free: 6.176 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005446/0.1704, allocations: 84.5 kB / 0.6938 GB, free: 6.094 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003124/0.1707, allocations: 287.5 kB / 0.6941 GB, free: 5.773 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/0.1708, allocations: 25.02 kB / 0.6941 GB, free: 5.75 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.216e-05/0.1708, allocations: 28.38 kB / 0.6941 GB, free: 5.723 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007845/0.1716, allocations: 0.4902 MB / 0.6946 GB, free: 5.199 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.1717, allocations: 3.984 kB / 0.6946 GB, free: 5.195 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.544e-05/0.1717, allocations: 16 kB / 0.6946 GB, free: 5.18 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-05/0.1718, allocations: 36.64 kB / 0.6947 GB, free: 5.141 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007455/0.1725, allocations: 390.2 kB / 0.695 GB, free: 4.762 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001954/0.1745, allocations: 2.048 MB / 0.697 GB, free: 2.512 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005908/0.1751, allocations: 237.5 kB / 0.6973 GB, free: 2.273 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003919/0.1755, allocations: 164.8 kB / 0.6974 GB, free: 2.109 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.1755, allocations: 4 kB / 0.6974 GB, free: 2.105 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.1756, allocations: 34.55 kB / 0.6975 GB, free: 2.062 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.462e-06/0.1756, allocations: 0 / 0.6975 GB, free: 2.062 MB / 494.1 MB Notification: Performance of matching and sorting (n=18): time 0.00109/0.1767, allocations: 461 kB / 0.6979 GB, free: 1.586 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.041e-05/0.1767, allocations: 51.41 kB / 0.698 GB, free: 1.523 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002578/0.177, allocations: 258.6 kB / 0.6982 GB, free: 1.27 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.124e-05/0.177, allocations: 29.7 kB / 0.6982 GB, free: 1.234 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.1772, allocations: 211.7 kB / 0.6984 GB, free: 1.023 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.281e-05/0.1772, allocations: 67.09 kB / 0.6985 GB, free: 0.957 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.348e-05/0.1773, allocations: 33.7 kB / 0.6985 GB, free: 0.918 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.1774, allocations: 334.8 kB / 0.6988 GB, free: 0.582 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002722/0.1777, allocations: 100.5 kB / 0.6989 GB, free: 492 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000342/0.1781, allocations: 215.6 kB / 0.6991 GB, free: 224 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006309/0.1787, allocations: 335.9 kB / 0.6995 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.1787, allocations: 0 / 0.6995 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007862/0.1795, allocations: 374.2 kB / 0.6998 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001171/0.1796, allocations: 199.8 kB / 0.7 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.1796, allocations: 11.98 kB / 0.7 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001889/0.1798, allocations: 32.83 kB / 0.7001 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000272/0.1801, allocations: 71.84 kB / 0.7001 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001145/0.1813, allocations: 1.343 MB / 0.7014 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002514/0.1815, allocations: 51.81 kB / 0.7015 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.132e-05/0.1816, allocations: 16 kB / 0.7015 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/0.1816, allocations: 4 kB / 0.7015 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006035/0.1822, allocations: 299.7 kB / 0.7018 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.1822, allocations: 4 kB / 0.7018 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.89e-06/0.1822, allocations: 7.938 kB / 0.7018 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002626/0.1825, allocations: 79.83 kB / 0.7019 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.179e-06/0.1825, allocations: 4 kB / 0.7019 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002043/0.1827, allocations: 43.92 kB / 0.7019 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/0.1827, allocations: 15.98 kB / 0.7019 GB, free: 13.11 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.0002154/0.183, allocations: 251 kB / 0.7022 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.895e-05/0.183, allocations: 23.72 kB / 0.7022 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.513e-05/0.1831, allocations: 34.12 kB / 0.7022 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.1831, allocations: 3.984 kB / 0.7022 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.1831, allocations: 0 / 0.7022 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1831, allocations: 4 kB / 0.7022 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.1842, allocations: 0.7754 MB / 0.703 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.1842, allocations: 0 / 0.703 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001912/0.1844, allocations: 47.97 kB / 0.703 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.736e-05/0.1845, allocations: 28.84 kB / 0.7031 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.1846, allocations: 4 kB / 0.7031 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009307/0.1855, allocations: 1.312 MB / 0.7044 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.83e-06/0.1855, allocations: 11.91 kB / 0.7044 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000645/0.1862, allocations: 391.5 kB / 0.7047 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.1863, allocations: 116.8 kB / 0.7049 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.867e-05/0.1863, allocations: 7.938 kB / 0.7049 GB, free: 9.863 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001886/0.1865, allocations: 23.97 kB / 0.7049 GB, free: 9.84 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.503e-05/0.1866, allocations: 23.91 kB / 0.7049 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.584e-05/0.1866, allocations: 4 kB / 0.7049 GB, free: 9.812 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001725/0.1868, allocations: 186 kB / 0.7051 GB, free: 9.629 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.1e-07/0.1868, allocations: 3.938 kB / 0.7051 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005938/0.1874, allocations: 143.6 kB / 0.7052 GB, free: 9.484 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.0001264/0.1875, allocations: 105.2 kB / 0.7053 GB, free: 9.371 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001067/0.1886, allocations: 0.5067 MB / 0.7058 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.1886, allocations: 1.062 kB / 0.7058 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003447/0.189, allocations: 236.6 kB / 0.7061 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000493/0.1895, allocations: 60.52 kB / 0.7061 GB, free: 8.551 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008682/0.1904, allocations: 0.6988 MB / 0.7068 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/0.1907, allocations: 0.8035 MB / 0.7076 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000254/0.191, allocations: 70.22 kB / 0.7076 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.907e-05/0.1911, allocations: 23.44 kB / 0.7077 GB, free: 6.895 MB / 0.4981 GB Notification: Performance of SimCode: time 5.41e-07/0.1911, allocations: 0 / 0.7077 GB, free: 6.895 MB / 0.4981 GB Notification: Performance of Templates: time 0.006708/0.1978, allocations: 3.212 MB / 0.7108 GB, free: 3.723 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)