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.007584/0.007584, allocations: 100.8 kB / 15.73 MB, free: 6.445 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.002026/0.002026, allocations: 191.4 kB / 16.67 MB, free: 6.348 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.51/1.51, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002599/0.002599, allocations: 278.8 kB / 290.8 MB, free: 1.934 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.139/1.139, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002771/0.002771, allocations: 98.91 kB / 0.681 GB, free: 15.94 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1696/0.1724, allocations: 86.98 MB / 0.7659 GB, free: 8.891 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.3388/0.5112, allocations: 22.62 MB / 0.788 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02568/0.537, allocations: 17.64 MB / 0.8053 GB, free: 6.957 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004075/0.5411, allocations: 111.1 kB / 0.8054 GB, free: 6.922 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.01187/0.553, allocations: 4.168 MB / 0.8094 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01321/0.5662, allocations: 3.514 MB / 0.8129 GB, free: 2.32 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004523/0.5708, allocations: 1.318 MB / 0.8141 GB, free: 1.633 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01006/0.5809, allocations: 5.784 MB / 0.8198 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007058/0.5879, allocations: 3.598 MB / 0.8233 GB, free: 13.24 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005475/0.5934, allocations: 2.408 MB / 0.8257 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006415/0.5999, allocations: 2.447 MB / 0.8281 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001729/0.6016, allocations: 369.9 kB / 0.8284 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004314/0.606, allocations: 1.037 MB / 0.8294 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.002623/0.6086, allocations: 1.189 MB / 0.8306 GB, free: 9.445 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.00553/0.6142, allocations: 1.992 MB / 0.8325 GB, free: 8.086 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0117/0.6259, allocations: 5.207 MB / 0.8376 GB, free: 4.441 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.6259, allocations: 0 / 0.8376 GB, free: 4.441 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.094e-06/0.6259, allocations: 0 / 0.8376 GB, free: 4.441 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0002677/0.6262, allocations: 1.469 kB / 0.8376 GB, free: 4.441 MB / 0.5919 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.01504/0.6413, allocations: 4.727 MB / 0.8422 GB, free: 1.145 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.6413, allocations: 9.938 kB / 0.8422 GB, free: 1.145 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006486/0.642, allocations: 360.3 kB / 0.8426 GB, free: 0.8789 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01621/0.6582, allocations: 3.284 MB / 0.8458 GB, free: 15.37 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005311/0.6635, allocations: 2.258 MB / 0.848 GB, free: 13.76 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000442/0.664, allocations: 466.7 kB / 0.8484 GB, free: 13.35 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007529/0.6648, allocations: 232.8 kB / 0.8487 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01173/0.6765, allocations: 4.809 MB / 0.8534 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.505e-05/0.6766, allocations: 7.938 kB / 0.8534 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003522/0.677, allocations: 107.9 kB / 0.8535 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002358/0.6772, allocations: 168.8 kB / 0.8536 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01374/0.6909, allocations: 5.195 MB / 0.8587 GB, free: 4.02 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02421/0.7152, allocations: 14.44 MB / 0.8728 GB, free: 4.414 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009959/0.7252, allocations: 3.381 MB / 0.8761 GB, free: 1.023 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003793/0.729, allocations: 1.475 MB / 0.8775 GB, free: 15.55 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001281/0.7292, allocations: 29.27 kB / 0.8776 GB, free: 15.52 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004319/0.7335, allocations: 1.782 MB / 0.8793 GB, free: 13.67 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=163): time 3.827e-06/0.7335, allocations: 0 / 0.8793 GB, free: 13.67 MB / 0.6387 GB Notification: Performance of matching and sorting (n=250): time 0.1263/0.8598, allocations: 28.3 MB / 0.9069 GB, free: 1.156 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003006/0.8602, allocations: 0.4928 MB / 0.9074 GB, free: 0.5547 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003489/0.8637, allocations: 2.3 MB / 0.9097 GB, free: 14.24 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0004532/0.8641, allocations: 81.69 kB / 0.9097 GB, free: 14.16 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.001414/0.8656, allocations: 1.448 MB / 0.9112 GB, free: 12.7 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.001007/0.8666, allocations: 0.8636 MB / 0.912 GB, free: 11.82 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009043/0.8675, allocations: 416.5 kB / 0.9124 GB, free: 11.41 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001319/0.8676, allocations: 305.1 kB / 0.9127 GB, free: 11.11 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005199/0.8728, allocations: 1.929 MB / 0.9146 GB, free: 9.176 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005564/0.8784, allocations: 2.231 MB / 0.9168 GB, free: 6.859 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01041/0.8888, allocations: 4.161 MB / 0.9208 GB, free: 2.562 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.8889, allocations: 0 / 0.9208 GB, free: 2.562 MB / 0.67 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.0187/0.9076, allocations: 6.553 MB / 0.9272 GB, free: 11.92 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 0.000125/0.9077, allocations: 148.5 kB / 0.9274 GB, free: 11.74 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/0.9077, allocations: 8 kB / 0.9274 GB, free: 11.73 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01016/0.9179, allocations: 2.926 MB / 0.9302 GB, free: 8.805 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00298/0.9209, allocations: 487.2 kB / 0.9307 GB, free: 8.328 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04112/0.962, allocations: 18.86 MB / 0.9491 GB, free: 5.223 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00425/0.9663, allocations: 323.6 kB / 0.9494 GB, free: 4.906 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003143/0.9667, allocations: 88.06 kB / 0.9495 GB, free: 4.82 MB / 0.7012 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.001514/0.9682, allocations: 0.7071 MB / 0.9502 GB, free: 4.105 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006376/0.9688, allocations: 349.9 kB / 0.9505 GB, free: 3.762 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007271/0.9696, allocations: 384.1 kB / 0.9509 GB, free: 3.379 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.106e-05/0.9696, allocations: 24 kB / 0.9509 GB, free: 3.355 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.389e-05/0.9696, allocations: 8 kB / 0.9509 GB, free: 3.348 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.135e-05/0.9696, allocations: 15.95 kB / 0.9509 GB, free: 3.332 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005053/0.9747, allocations: 3.632 MB / 0.9545 GB, free: 15.64 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.9747, allocations: 4 kB / 0.9545 GB, free: 15.64 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002494/0.9772, allocations: 423.3 kB / 0.9549 GB, free: 15.23 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009956/0.9872, allocations: 2.861 MB / 0.9577 GB, free: 12.36 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003731/0.9876, allocations: 51.97 kB / 0.9577 GB, free: 12.3 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04059/1.028, allocations: 18.64 MB / 0.9759 GB, free: 9.367 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/1.028, allocations: 0 / 0.9759 GB, free: 9.367 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01855/1.047, allocations: 6.186 MB / 0.982 GB, free: 3.148 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002068/1.049, allocations: 0.7096 MB / 0.9827 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005983/1.049, allocations: 51.94 kB / 0.9827 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003271/1.053, allocations: 311.6 kB / 0.983 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001228/1.054, allocations: 358.7 kB / 0.9834 GB, free: 1.711 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002115/1.054, allocations: 67.97 kB / 0.9834 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002269/1.057, allocations: 1.536 MB / 0.9849 GB, free: 112 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/1.057, allocations: 0 / 0.9849 GB, free: 112 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003204/1.06, allocations: 1.043 MB / 0.9859 GB, free: 15.06 MB / 0.7481 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.01877/1.079, allocations: 6.827 MB / 0.9926 GB, free: 8.203 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.02337/1.102, allocations: 6.488 MB / 0.999 GB, free: 1.617 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/1.102, allocations: 3.938 kB / 0.999 GB, free: 1.613 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.01698/1.119, allocations: 4.064 MB / 1.003 GB, free: 13.52 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00535/1.124, allocations: 1.135 MB / 1.004 GB, free: 12.44 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07529/1.2, allocations: 31.98 MB / 1.035 GB, free: 11.99 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002178/1.202, allocations: 2.227 MB / 1.037 GB, free: 9.73 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.002334/1.204, allocations: 0.5138 MB / 1.038 GB, free: 9.211 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002071/1.206, allocations: 1.335 MB / 1.039 GB, free: 7.879 MB / 0.795 GB Notification: Performance of SimCode: time 8.21e-07/1.206, allocations: 0 / 1.039 GB, free: 7.879 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4918/1.698, allocations: 102.8 MB / 1.14 GB, free: 269.3 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.77/20.47, allocations: 14.11 kB / 1.14 GB, free: 269.3 MB / 0.8419 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)