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.0007264/0.0007263, allocations: 94.28 kB / 15.37 MB, free: 0.7266 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.0007897/0.00079, allocations: 176.8 kB / 16.27 MB, free: 6.672 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.315/1.315, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001681/0.001681, allocations: 278.1 kB / 291.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9196/0.9196, allocations: 169.5 MB / 0.5004 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004022/0.0004022, allocations: 16.27 kB / 0.5988 GB, free: 27.9 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.16/0.1604, allocations: 88.53 MB / 0.6852 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02221/0.1827, allocations: 21.7 MB / 0.7064 GB, free: 9.266 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02423/0.2069, allocations: 17.39 MB / 0.7234 GB, free: 7.848 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003707/0.2107, allocations: 99.44 kB / 0.7235 GB, free: 7.75 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002214/0.2129, allocations: 0.5814 MB / 0.7241 GB, free: 7.164 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01025/0.2232, allocations: 3.21 MB / 0.7272 GB, free: 3.961 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003133/0.2263, allocations: 1.19 MB / 0.7284 GB, free: 2.773 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.008534/0.2349, allocations: 7.05 MB / 0.7352 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003581/0.2385, allocations: 2.554 MB / 0.7377 GB, free: 9.051 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003568/0.2421, allocations: 2.046 MB / 0.7397 GB, free: 6.996 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00371/0.2458, allocations: 2.299 MB / 0.742 GB, free: 4.688 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0004362/0.2462, allocations: 176 kB / 0.7421 GB, free: 4.516 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002108/0.2484, allocations: 1.049 MB / 0.7432 GB, free: 3.465 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0008856/0.2493, allocations: 0.9768 MB / 0.7441 GB, free: 2.484 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.00206/0.2513, allocations: 1.777 MB / 0.7459 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.005031/0.2564, allocations: 4.943 MB / 0.7507 GB, free: 11.73 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.2564, allocations: 0 / 0.7507 GB, free: 11.73 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.754e-06/0.2564, allocations: 0 / 0.7507 GB, free: 11.73 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0001153/0.2565, allocations: 4 kB / 0.7507 GB, free: 11.73 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.008755/0.2653, allocations: 4.068 MB / 0.7547 GB, free: 7.547 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.2653, allocations: 12.03 kB / 0.7547 GB, free: 7.535 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006393/0.266, allocations: 362.3 kB / 0.755 GB, free: 7.172 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01649/0.2825, allocations: 3.371 MB / 0.7583 GB, free: 3.793 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004092/0.2866, allocations: 2.084 MB / 0.7603 GB, free: 1.641 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004085/0.287, allocations: 478 kB / 0.7608 GB, free: 1.109 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004839/0.2875, allocations: 232 kB / 0.761 GB, free: 0.8828 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01031/0.2978, allocations: 4.873 MB / 0.7658 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.286e-05/0.2979, allocations: 4 kB / 0.7658 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003062/0.2982, allocations: 104 kB / 0.7659 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000195/0.2984, allocations: 172.8 kB / 0.766 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01363/0.3121, allocations: 5.319 MB / 0.7712 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2896/0.6017, allocations: 14.58 MB / 0.7855 GB, free: 79.64 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009886/0.6116, allocations: 3.691 MB / 0.7891 GB, free: 78.96 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003775/0.6154, allocations: 1.596 MB / 0.7906 GB, free: 78.51 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001184/0.6155, allocations: 29.89 kB / 0.7907 GB, free: 78.51 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004367/0.6199, allocations: 1.911 MB / 0.7925 GB, free: 77.9 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=163): time 4.268e-06/0.6199, allocations: 0 / 0.7925 GB, free: 77.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=250): time 0.1259/0.7458, allocations: 34.14 MB / 0.8259 GB, free: 62.36 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/0.746, allocations: 0.4889 MB / 0.8264 GB, free: 61.76 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003138/0.7491, allocations: 2.304 MB / 0.8286 GB, free: 59.45 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004341/0.7496, allocations: 69.7 kB / 0.8287 GB, free: 59.37 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008824/0.7505, allocations: 1.434 MB / 0.8301 GB, free: 57.93 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006937/0.7512, allocations: 0.816 MB / 0.8309 GB, free: 57.12 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003795/0.7516, allocations: 182.4 kB / 0.831 GB, free: 56.93 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.737e-05/0.7516, allocations: 305.1 kB / 0.8313 GB, free: 56.63 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004998/0.7566, allocations: 2.12 MB / 0.8334 GB, free: 54.51 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005093/0.7617, allocations: 2.423 MB / 0.8358 GB, free: 52 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01004/0.7718, allocations: 4.536 MB / 0.8402 GB, free: 47.33 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.104e-05/0.7718, allocations: 4 kB / 0.8402 GB, free: 47.33 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01699/0.7888, allocations: 6.916 MB / 0.847 GB, free: 40.32 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.796e-05/0.7889, allocations: 149.6 kB / 0.8471 GB, free: 40.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.7889, allocations: 4 kB / 0.8471 GB, free: 40.14 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008919/0.7978, allocations: 2.935 MB / 0.85 GB, free: 37.21 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00276/0.8006, allocations: 0.5657 MB / 0.8505 GB, free: 36.64 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03218/0.8328, allocations: 17.37 MB / 0.8675 GB, free: 19.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004077/0.8369, allocations: 423.6 kB / 0.8679 GB, free: 18.68 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002352/0.8372, allocations: 83.98 kB / 0.868 GB, free: 18.59 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.001258/0.8384, allocations: 0.7112 MB / 0.8687 GB, free: 17.87 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004129/0.8389, allocations: 332.1 kB / 0.869 GB, free: 17.54 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006809/0.8396, allocations: 388 kB / 0.8693 GB, free: 17.16 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/0.8396, allocations: 24 kB / 0.8694 GB, free: 17.13 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.721e-05/0.8396, allocations: 9.562 kB / 0.8694 GB, free: 17.12 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-05/0.8396, allocations: 11.95 kB / 0.8694 GB, free: 17.11 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003387/0.843, allocations: 3.624 MB / 0.8729 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.843, allocations: 0 / 0.8729 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002359/0.8454, allocations: 0.5033 MB / 0.8734 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00836/0.8538, allocations: 2.868 MB / 0.8762 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000199/0.854, allocations: 55.91 kB / 0.8763 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03315/0.8871, allocations: 17.14 MB / 0.893 GB, free: 8.645 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.8872, allocations: 3.984 kB / 0.893 GB, free: 8.641 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01818/0.9054, allocations: 6.55 MB / 0.8994 GB, free: 2.055 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001533/0.9069, allocations: 0.7 MB / 0.9001 GB, free: 1.332 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004407/0.9074, allocations: 47.94 kB / 0.9001 GB, free: 1.285 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00326/0.9107, allocations: 411.6 kB / 0.9005 GB, free: 0.8828 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001081/0.9117, allocations: 350.7 kB / 0.9009 GB, free: 0.543 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001877/0.9119, allocations: 67.97 kB / 0.9009 GB, free: 488 kB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001952/0.9139, allocations: 1.545 MB / 0.9024 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9139, allocations: 0 / 0.9024 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002438/0.9164, allocations: 1.039 MB / 0.9035 GB, free: 13.9 MB / 0.5919 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.01828/0.9346, allocations: 7.182 MB / 0.9105 GB, free: 6.676 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02283/0.9575, allocations: 6.838 MB / 0.9172 GB, free: 15.74 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.635e-06/0.9576, allocations: 0.75 kB / 0.9172 GB, free: 15.74 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01683/0.9744, allocations: 4.237 MB / 0.9213 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004731/0.9792, allocations: 1.049 MB / 0.9223 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07643/1.056, allocations: 39.13 MB / 0.9605 GB, free: 1.234 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001847/1.057, allocations: 2.231 MB / 0.9627 GB, free: 14.97 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.002414/1.06, allocations: 0.5138 MB / 0.9632 GB, free: 14.45 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001664/1.062, allocations: 1.323 MB / 0.9645 GB, free: 13.13 MB / 0.6544 GB Notification: Performance of SimCode: time 7.82e-07/1.062, allocations: 0 / 0.9645 GB, free: 13.13 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4429/1.505, allocations: 98.28 MB / 1.06 GB, free: 238.2 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000133/1.505, allocations: 246.7 kB / 1.061 GB, free: 237.9 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.214/5.719, allocations: 5.156 kB / 1.061 GB, free: 237.9 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)