Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.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.Lines.Examples.DCLinesLinearized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized") translateModel(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005543/0.005543, allocations: 100.8 kB / 15.73 MB, free: 6.035 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.001292/0.001292, allocations: 198.1 kB / 16.68 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.301/1.301, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002103/0.002103, allocations: 284.3 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9365/0.9365, allocations: 169.3 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 87.86 kB / 0.6815 GB, free: 6.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4044/0.4061, allocations: 86.99 MB / 0.7664 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02411/0.4303, allocations: 22.61 MB / 0.7885 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02448/0.4548, allocations: 17.63 MB / 0.8057 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002649/0.4575, allocations: 115.4 kB / 0.8058 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.009701/0.4672, allocations: 4.175 MB / 0.8099 GB, free: 7.199 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.009879/0.4771, allocations: 3.57 MB / 0.8134 GB, free: 3.633 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003391/0.4805, allocations: 1.326 MB / 0.8147 GB, free: 2.312 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.008003/0.4885, allocations: 5.801 MB / 0.8204 GB, free: 12.49 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005692/0.4942, allocations: 3.591 MB / 0.8239 GB, free: 8.828 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004202/0.4984, allocations: 2.476 MB / 0.8263 GB, free: 6.344 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004414/0.5029, allocations: 2.452 MB / 0.8287 GB, free: 3.883 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001167/0.5041, allocations: 368 kB / 0.829 GB, free: 3.523 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002878/0.5069, allocations: 1.03 MB / 0.83 GB, free: 2.492 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001904/0.5089, allocations: 1.199 MB / 0.8312 GB, free: 1.289 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.003953/0.5128, allocations: 1.994 MB / 0.8332 GB, free: 15.28 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.006883/0.5197, allocations: 5.182 MB / 0.8382 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.5198, allocations: 4 kB / 0.8382 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.953e-06/0.5198, allocations: 0 / 0.8382 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001163/0.5199, allocations: 0 / 0.8382 GB, free: 10.08 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.01057/0.5305, allocations: 4.609 MB / 0.8427 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.5305, allocations: 8.031 kB / 0.8427 GB, free: 5.352 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01551/0.5461, allocations: 3.265 MB / 0.8459 GB, free: 2.078 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004927/0.551, allocations: 2.228 MB / 0.8481 GB, free: 15.78 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000419/0.5515, allocations: 466.2 kB / 0.8485 GB, free: 15.26 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009279/0.5524, allocations: 243.9 kB / 0.8488 GB, free: 15.02 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01287/0.5653, allocations: 4.799 MB / 0.8535 GB, free: 10.08 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.141e-05/0.5654, allocations: 3.938 kB / 0.8535 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007096/0.5661, allocations: 112 kB / 0.8536 GB, free: 9.965 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002021/0.5663, allocations: 168.8 kB / 0.8537 GB, free: 9.797 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01257/0.5789, allocations: 5.191 MB / 0.8588 GB, free: 4.59 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02011/0.5991, allocations: 14.4 MB / 0.8729 GB, free: 5.023 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008837/0.6079, allocations: 3.383 MB / 0.8762 GB, free: 1.637 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003346/0.6113, allocations: 1.471 MB / 0.8776 GB, free: 168 kB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001309/0.6114, allocations: 29.28 kB / 0.8776 GB, free: 136 kB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003786/0.6152, allocations: 1.789 MB / 0.8794 GB, free: 14.28 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=163): time 3.056e-06/0.6152, allocations: 0 / 0.8794 GB, free: 14.28 MB / 0.6544 GB Notification: Performance of matching and sorting (n=250): time 0.1155/0.7307, allocations: 28.25 MB / 0.907 GB, free: 1.809 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002263/0.731, allocations: 0.4967 MB / 0.9074 GB, free: 1.203 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003024/0.734, allocations: 2.296 MB / 0.9097 GB, free: 14.89 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0003552/0.7344, allocations: 73.7 kB / 0.9097 GB, free: 14.82 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001125/0.7355, allocations: 1.438 MB / 0.9112 GB, free: 13.36 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.000714/0.7363, allocations: 0.824 MB / 0.912 GB, free: 12.53 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008574/0.7371, allocations: 412.4 kB / 0.9124 GB, free: 12.12 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 8.909e-05/0.7372, allocations: 301.1 kB / 0.9126 GB, free: 11.82 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004842/0.7421, allocations: 1.933 MB / 0.9145 GB, free: 9.883 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005106/0.7472, allocations: 2.234 MB / 0.9167 GB, free: 7.566 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009577/0.7568, allocations: 4.161 MB / 0.9208 GB, free: 3.27 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.218e-06/0.7568, allocations: 8 kB / 0.9208 GB, free: 3.262 MB / 0.6856 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01773/0.7745, allocations: 6.531 MB / 0.9272 GB, free: 12.64 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 8.748e-05/0.7747, allocations: 144.8 kB / 0.9273 GB, free: 12.46 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/0.7747, allocations: 8 kB / 0.9273 GB, free: 12.46 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009797/0.7845, allocations: 2.934 MB / 0.9302 GB, free: 9.52 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002702/0.7872, allocations: 491.2 kB / 0.9306 GB, free: 9.039 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04018/0.8274, allocations: 18.82 MB / 0.949 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00381/0.8312, allocations: 315.6 kB / 0.9493 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004391/0.8317, allocations: 92.22 kB / 0.9494 GB, free: 5.562 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 (varLoad5.count,$PRE.varLoad5.count,varLoad5.T_start,$PRE.varLoad5.T_start,varLoad4.count,$PRE.varLoad4.count,varLoad4.T_start,$PRE.varLoad4.T_start,varLoad3.count,$PRE.varLoad3.count,varLoad3.T_start,$PRE.varLoad3.T_start,varLoad2.count,$PRE.varLoad2.count,varLoad2.T_start,$PRE.varLoad2.T_start,varLoad1.count,$PRE.varLoad1.count,varLoad1.T_start,$PRE.varLoad1.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,45.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,64)} Notification: Performance of prepare postOptimizeDAE: time 0.001665/0.8334, allocations: 0.715 MB / 0.9501 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007488/0.8341, allocations: 324.2 kB / 0.9504 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007734/0.8349, allocations: 384.3 kB / 0.9508 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.026e-05/0.835, allocations: 24 kB / 0.9508 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.533e-05/0.835, allocations: 19.88 kB / 0.9508 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.965e-05/0.835, allocations: 11.95 kB / 0.9508 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005095/0.8401, allocations: 3.62 MB / 0.9544 GB, free: 416 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.898e-05/0.8402, allocations: 4 kB / 0.9544 GB, free: 412 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002465/0.8426, allocations: 415.4 kB / 0.9548 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009966/0.8526, allocations: 2.872 MB / 0.9576 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003647/0.853, allocations: 47.98 kB / 0.9576 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3644/1.217, allocations: 18.61 MB / 0.9758 GB, free: 185 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/1.217, allocations: 2.828 kB / 0.9758 GB, free: 185 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01601/1.234, allocations: 6.177 MB / 0.9818 GB, free: 183.4 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001395/1.235, allocations: 0.7029 MB / 0.9825 GB, free: 183.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004239/1.235, allocations: 49.86 kB / 0.9826 GB, free: 183.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002768/1.238, allocations: 310.6 kB / 0.9829 GB, free: 183 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001157/1.239, allocations: 360.1 kB / 0.9832 GB, free: 183 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001933/1.24, allocations: 67.25 kB / 0.9833 GB, free: 182.9 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001702/1.241, allocations: 1.534 MB / 0.9848 GB, free: 182.4 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/1.241, allocations: 0 / 0.9848 GB, free: 182.4 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002349/1.244, allocations: 1.044 MB / 0.9858 GB, free: 182.3 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,62)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003032/1.244, allocations: 166.3 kB / 0.9859 GB, free: 182.1 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.01931/1.263, allocations: 6.473 MB / 0.9923 GB, free: 179.9 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/1.263, allocations: 0 / 0.9923 GB, free: 179.9 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.01504/1.278, allocations: 4.065 MB / 0.9962 GB, free: 178.6 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004104/1.282, allocations: 1.138 MB / 0.9973 GB, free: 178.3 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0112/1.294, allocations: 6.682 MB / 1.004 GB, free: 172.8 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001291/1.295, allocations: 2.235 MB / 1.006 GB, free: 170.8 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001847/1.297, allocations: 0.5142 MB / 1.007 GB, free: 170.4 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005895/1.297, allocations: 191.3 kB / 1.007 GB, free: 170.2 MB / 0.7325 GB Notification: Performance of SimCode: time 5.51e-07/1.297, allocations: 0 / 1.007 GB, free: 170.2 MB / 0.7325 GB Notification: Performance of Templates: time 0.08941/1.387, allocations: 75.71 MB / 1.081 GB, free: 95.48 MB / 0.7325 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)