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: "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001632/0.001632, allocations: 189.5 kB / 16.25 MB, free: 6.59 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.295/1.295, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002034/0.002034, allocations: 294.8 kB / 290.3 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9224/0.9224, allocations: 169.2 MB / 0.4978 GB, free: 14.05 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001617/0.001617, allocations: 90.22 kB / 0.5948 GB, free: 28.37 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1521/0.1537, allocations: 86.98 MB / 0.6797 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02306/0.1768, allocations: 22.42 MB / 0.7016 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02382/0.2007, allocations: 17.46 MB / 0.7187 GB, free: 8.945 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003174/0.2039, allocations: 99.44 kB / 0.7188 GB, free: 8.848 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.00995/0.214, allocations: 3.926 MB / 0.7226 GB, free: 4.918 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0102/0.2242, allocations: 3.191 MB / 0.7257 GB, free: 1.73 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003445/0.2276, allocations: 1.192 MB / 0.7269 GB, free: 0.543 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.008118/0.2358, allocations: 5.796 MB / 0.7325 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006217/0.242, allocations: 4.022 MB / 0.7365 GB, free: 6.633 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004393/0.2465, allocations: 2.456 MB / 0.7389 GB, free: 4.168 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004876/0.2514, allocations: 2.522 MB / 0.7413 GB, free: 1.637 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.001322/0.2527, allocations: 368 kB / 0.7417 GB, free: 1.277 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002749/0.2555, allocations: 1.037 MB / 0.7427 GB, free: 244 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001202/0.2567, allocations: 1.196 MB / 0.7439 GB, free: 15.04 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.003085/0.2598, allocations: 1.994 MB / 0.7458 GB, free: 13.04 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.005896/0.2657, allocations: 5.186 MB / 0.7509 GB, free: 7.832 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.2657, allocations: 0 / 0.7509 GB, free: 7.832 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.044e-06/0.2657, allocations: 0 / 0.7509 GB, free: 7.832 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.000147/0.2659, allocations: 0 / 0.7509 GB, free: 7.832 MB / 0.545 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.009839/0.2757, allocations: 4.612 MB / 0.7554 GB, free: 3.105 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.2758, allocations: 15.97 kB / 0.7554 GB, free: 3.09 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004805/0.2763, allocations: 370.3 kB / 0.7558 GB, free: 2.719 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01501/0.2913, allocations: 3.258 MB / 0.7589 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004012/0.2954, allocations: 2.092 MB / 0.761 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003569/0.2958, allocations: 466 kB / 0.7614 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005227/0.2963, allocations: 236 kB / 0.7616 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009964/0.3063, allocations: 4.81 MB / 0.7663 GB, free: 7.586 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.29e-05/0.3063, allocations: 0 / 0.7663 GB, free: 7.586 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003039/0.3066, allocations: 108 kB / 0.7664 GB, free: 7.48 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001809/0.3068, allocations: 172.8 kB / 0.7666 GB, free: 7.309 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01186/0.3187, allocations: 5.198 MB / 0.7717 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3153/0.634, allocations: 14.48 MB / 0.7858 GB, free: 80.05 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009265/0.6433, allocations: 3.392 MB / 0.7891 GB, free: 79.01 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003362/0.6467, allocations: 1.474 MB / 0.7906 GB, free: 78.56 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001285/0.6469, allocations: 28.25 kB / 0.7906 GB, free: 78.56 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004105/0.651, allocations: 1.787 MB / 0.7923 GB, free: 77.95 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=163): time 3.617e-06/0.651, allocations: 0 / 0.7923 GB, free: 77.95 MB / 0.5606 GB Notification: Performance of matching and sorting (n=250): time 0.1099/0.761, allocations: 28.22 MB / 0.8199 GB, free: 66.21 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.7611, allocations: 0.4935 MB / 0.8204 GB, free: 65.63 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002569/0.7637, allocations: 2.298 MB / 0.8226 GB, free: 64.04 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0003709/0.7641, allocations: 73.7 kB / 0.8227 GB, free: 63.96 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000835/0.7649, allocations: 1.438 MB / 0.8241 GB, free: 62.51 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006097/0.7655, allocations: 0.8221 MB / 0.8249 GB, free: 61.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007282/0.7663, allocations: 408.5 kB / 0.8253 GB, free: 61.29 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.845e-05/0.7663, allocations: 301.1 kB / 0.8256 GB, free: 60.99 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004172/0.7705, allocations: 1.933 MB / 0.8275 GB, free: 59.05 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004348/0.7749, allocations: 2.227 MB / 0.8297 GB, free: 56.74 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008325/0.7832, allocations: 4.173 MB / 0.8337 GB, free: 52.44 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/0.7832, allocations: 4 kB / 0.8337 GB, free: 52.43 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01535/0.7986, allocations: 6.528 MB / 0.8401 GB, free: 45.81 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.195e-05/0.7987, allocations: 148.4 kB / 0.8402 GB, free: 45.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.7987, allocations: 8 kB / 0.8403 GB, free: 45.63 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008724/0.8074, allocations: 2.947 MB / 0.8431 GB, free: 42.68 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002608/0.81, allocations: 495.2 kB / 0.8436 GB, free: 42.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03639/0.8465, allocations: 18.85 MB / 0.862 GB, free: 23.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005885/0.8524, allocations: 315.7 kB / 0.8623 GB, free: 22.84 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005297/0.8529, allocations: 95.91 kB / 0.8624 GB, free: 22.75 MB / 0.5606 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.002144/0.8551, allocations: 0.7047 MB / 0.8631 GB, free: 22.03 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001028/0.8562, allocations: 328.1 kB / 0.8634 GB, free: 21.71 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009217/0.8571, allocations: 389.8 kB / 0.8638 GB, free: 21.32 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.143e-05/0.8571, allocations: 27.94 kB / 0.8638 GB, free: 21.29 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.778e-05/0.8572, allocations: 13.69 kB / 0.8638 GB, free: 21.28 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.638e-05/0.8572, allocations: 11.95 kB / 0.8638 GB, free: 21.27 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00648/0.8637, allocations: 3.618 MB / 0.8674 GB, free: 17.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-05/0.8638, allocations: 0 / 0.8674 GB, free: 17.64 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004337/0.8681, allocations: 423.3 kB / 0.8678 GB, free: 17.23 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01647/0.8846, allocations: 2.881 MB / 0.8706 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005861/0.8853, allocations: 47.98 kB / 0.8706 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05175/0.937, allocations: 18.63 MB / 0.8888 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.9371, allocations: 4 kB / 0.8888 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01764/0.9547, allocations: 6.176 MB / 0.8949 GB, free: 5.168 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00187/0.9566, allocations: 0.7 MB / 0.8955 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001043/0.9577, allocations: 47.98 kB / 0.8956 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003615/0.9613, allocations: 315.5 kB / 0.8959 GB, free: 4.09 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00127/0.9626, allocations: 362 kB / 0.8962 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002837/0.9629, allocations: 69.91 kB / 0.8963 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002393/0.9653, allocations: 1.532 MB / 0.8978 GB, free: 2.145 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.41e-07/0.9653, allocations: 0 / 0.8978 GB, free: 2.145 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003006/0.9683, allocations: 1.047 MB / 0.8988 GB, free: 1.098 MB / 0.5762 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.01799/0.9863, allocations: 6.805 MB / 0.9055 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02621/1.013, allocations: 7.297 MB / 0.9126 GB, free: 2.879 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/1.013, allocations: 4.75 kB / 0.9126 GB, free: 2.875 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.01713/1.03, allocations: 4.061 MB / 0.9166 GB, free: 14.79 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00652/1.036, allocations: 1.146 MB / 0.9177 GB, free: 13.73 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08546/1.122, allocations: 38.1 MB / 0.9549 GB, free: 5.559 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00242/1.124, allocations: 2.227 MB / 0.9571 GB, free: 3.301 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.002806/1.127, allocations: 0.5177 MB / 0.9576 GB, free: 2.777 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001971/1.129, allocations: 1.335 MB / 0.9589 GB, free: 1.441 MB / 0.6387 GB Notification: Performance of SimCode: time 7.32e-07/1.129, allocations: 4 kB / 0.9589 GB, free: 1.438 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4552/1.584, allocations: 102.8 MB / 1.059 GB, free: 244.6 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001771/1.585, allocations: 248.2 kB / 1.06 GB, free: 244.4 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.472/6.057, allocations: 2.031 kB / 1.06 GB, free: 244.4 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)