Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_9_Buildings_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.000844/0.0008439, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009612/0.0009612, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.472/2.472, allocations: 390.4 MB / 0.6655 GB, free: 2.879 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003788/0.0003789, allocations: 8 kB / 0.8149 GB, free: 14.07 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8435/0.8439, allocations: 142.3 MB / 0.9539 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02136/0.8654, allocations: 20.42 MB / 0.9738 GB, free: 8.508 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.02646/0.8919, allocations: 16.4 MB / 0.9898 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004564/0.8965, allocations: 99.44 kB / 0.9899 GB, free: 11.11 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002535/0.8991, allocations: 0.5657 MB / 0.9905 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.01147/0.9105, allocations: 2.861 MB / 0.9933 GB, free: 7.672 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.00501/0.9156, allocations: 0.9615 MB / 0.9942 GB, free: 6.715 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.01073/0.9263, allocations: 5.928 MB / 1 GB, free: 0.7695 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004093/0.9305, allocations: 2.075 MB / 1.002 GB, free: 14.63 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004257/0.9348, allocations: 1.961 MB / 1.004 GB, free: 12.66 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004838/0.9396, allocations: 2.218 MB / 1.006 GB, free: 10.43 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001078/0.9407, allocations: 172 kB / 1.006 GB, free: 10.27 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00241/0.9432, allocations: 0.5072 MB / 1.007 GB, free: 9.758 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001281/0.9445, allocations: 0.9536 MB / 1.008 GB, free: 8.801 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.001523/0.946, allocations: 0.699 MB / 1.008 GB, free: 8.094 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.005325/0.9513, allocations: 3.931 MB / 1.012 GB, free: 4.152 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.9514, allocations: 0 / 1.012 GB, free: 4.152 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.234e-06/0.9514, allocations: 0 / 1.012 GB, free: 4.152 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.0001813/0.9516, allocations: 0 / 1.012 GB, free: 4.152 MB / 0.7637 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.009664/0.9612, allocations: 4.107 MB / 1.016 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/0.9613, allocations: 8.031 kB / 1.016 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001356/0.9627, allocations: 366.1 kB / 1.017 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01519/0.9779, allocations: 3.366 MB / 1.02 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004914/0.9828, allocations: 1.987 MB / 1.022 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004074/0.9833, allocations: 461.7 kB / 1.022 GB, free: 9.609 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006238/0.9839, allocations: 232 kB / 1.022 GB, free: 9.383 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01021/0.9941, allocations: 4.865 MB / 1.027 GB, free: 4.371 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.093e-05/0.9942, allocations: 0 / 1.027 GB, free: 4.371 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002961/0.9945, allocations: 108 kB / 1.027 GB, free: 4.266 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001963/0.9947, allocations: 172.8 kB / 1.027 GB, free: 4.094 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01266/1.007, allocations: 5.3 MB / 1.033 GB, free: 14.78 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02708/1.035, allocations: 14.58 MB / 1.047 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01007/1.045, allocations: 3.672 MB / 1.05 GB, free: 11.34 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003886/1.049, allocations: 1.592 MB / 1.052 GB, free: 9.75 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002386/1.049, allocations: 25.3 kB / 1.052 GB, free: 9.727 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004452/1.053, allocations: 1.915 MB / 1.054 GB, free: 7.742 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=163): time 5.611e-06/1.053, allocations: 0 / 1.054 GB, free: 7.742 MB / 0.8106 GB Notification: Performance of matching and sorting (n=250): time 0.12/1.173, allocations: 34.09 MB / 1.087 GB, free: 5.438 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003169/1.174, allocations: 496.7 kB / 1.088 GB, free: 4.84 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004664/1.178, allocations: 2.277 MB / 1.09 GB, free: 2.551 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0005275/1.179, allocations: 73.7 kB / 1.09 GB, free: 2.473 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.001376/1.18, allocations: 1.438 MB / 1.091 GB, free: 1.02 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.001039/1.181, allocations: 0.8202 MB / 1.092 GB, free: 192 kB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002998/1.182, allocations: 52 kB / 1.092 GB, free: 140 kB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001973/1.182, allocations: 394.7 kB / 1.093 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004973/1.187, allocations: 2.108 MB / 1.095 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005543/1.192, allocations: 2.409 MB / 1.097 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005591/1.198, allocations: 2.292 MB / 1.099 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.504e-05/1.198, allocations: 7.984 kB / 1.099 GB, free: 8.789 MB / 0.8575 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01779/1.216, allocations: 6.876 MB / 1.106 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001075/1.216, allocations: 148.5 kB / 1.106 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/1.216, allocations: 4.344 kB / 1.106 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009189/1.225, allocations: 2.958 MB / 1.109 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002849/1.228, allocations: 0.5657 MB / 1.11 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03482/1.263, allocations: 17.31 MB / 1.126 GB, free: 12.55 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003625/1.267, allocations: 419.6 kB / 1.127 GB, free: 12.14 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002641/1.267, allocations: 87.97 kB / 1.127 GB, free: 12.05 MB / 0.8887 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 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.varLoad1.T_start,varLoad1.T_start,$PRE.varLoad1.count,varLoad1.count,$PRE.varLoad2.T_start,varLoad2.T_start,$PRE.varLoad2.count,varLoad2.count,$PRE.varLoad3.T_start,varLoad3.T_start,$PRE.varLoad3.count,varLoad3.count,$PRE.varLoad4.T_start,varLoad4.T_start,$PRE.varLoad4.count,varLoad4.count,$PRE.varLoad5.T_start,varLoad5.T_start,$PRE.varLoad5.count,varLoad5.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,45.0%) 52} * Non-linear torn systems: 1 {9 63} Notification: Performance of prepare postOptimizeDAE: time 0.00142/1.268, allocations: 0.7066 MB / 1.128 GB, free: 11.34 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005213/1.269, allocations: 332.1 kB / 1.128 GB, free: 11.01 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007995/1.27, allocations: 388.1 kB / 1.128 GB, free: 10.62 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.687e-05/1.27, allocations: 24 kB / 1.128 GB, free: 10.6 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-05/1.27, allocations: 12 kB / 1.128 GB, free: 10.59 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.892e-05/1.27, allocations: 11.95 kB / 1.128 GB, free: 10.57 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004158/1.274, allocations: 3.624 MB / 1.132 GB, free: 6.895 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/1.274, allocations: 3.984 kB / 1.132 GB, free: 6.891 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002323/1.276, allocations: 0.5033 MB / 1.132 GB, free: 6.387 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008599/1.285, allocations: 2.865 MB / 1.135 GB, free: 3.516 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003377/1.285, allocations: 47.97 kB / 1.135 GB, free: 3.469 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03324/1.318, allocations: 17.11 MB / 1.152 GB, free: 2.078 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/1.319, allocations: 0 / 1.152 GB, free: 2.078 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0164/1.335, allocations: 6.537 MB / 1.158 GB, free: 11.5 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001809/1.337, allocations: 0.6922 MB / 1.159 GB, free: 10.79 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000693/1.337, allocations: 47.98 kB / 1.159 GB, free: 10.74 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003418/1.341, allocations: 415.5 kB / 1.159 GB, free: 10.34 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001277/1.342, allocations: 366.5 kB / 1.16 GB, free: 9.98 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002704/1.343, allocations: 75.97 kB / 1.16 GB, free: 9.906 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.002356/1.345, allocations: 1.505 MB / 1.161 GB, free: 8.402 MB / 0.92 GB Notification: Performance of sort global known variables: time 4.7e-07/1.345, allocations: 0 / 1.161 GB, free: 8.402 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.004173/1.349, allocations: 1.047 MB / 1.162 GB, free: 7.355 MB / 0.92 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,60.0%) 52} * Non-linear torn systems: 1 {10 62} Notification: Performance of Backend phase and start with SimCode phase: time 0.01749/1.367, allocations: 7.165 MB / 1.169 GB, free: 148 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.02142/1.388, allocations: 6.825 MB / 1.176 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 9.417e-06/1.388, allocations: 4 kB / 1.176 GB, free: 9.223 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.01556/1.404, allocations: 4.226 MB / 1.18 GB, free: 4.969 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005576/1.409, allocations: 1.051 MB / 1.181 GB, free: 3.93 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05778/1.467, allocations: 27.14 MB / 1.208 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001951/1.469, allocations: 2.234 MB / 1.21 GB, free: 5.039 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.002618/1.472, allocations: 0.506 MB / 1.21 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0017/1.473, allocations: 1.327 MB / 1.212 GB, free: 3.199 MB / 0.9669 GB Notification: Performance of SimCode: time 7.62e-07/1.473, allocations: 0 / 1.212 GB, free: 3.199 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6845/2.158, allocations: 96.54 MB / 1.306 GB, free: 265 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001299/2.158, allocations: 228.3 kB / 1.306 GB, free: 264.8 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.722/6.881, allocations: 3.75 kB / 1.306 GB, free: 264.8 MB / 1.014 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat does not exist to compare? outputFormat=mat