Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.279/2.279, allocations: 393.5 MB / 408.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 180 kB / 0.4901 GB, free: 2.246 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.604/1.604, allocations: 223.1 MB / 0.7992 GB, free: 14.73 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 94.44 kB / 0.9396 GB, free: 1.914 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004274/0.0004274, allocations: 10.56 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3669/0.3674, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9735/1.341, allocations: 202.2 MB / 1.427 GB, free: 192.6 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/1.341, allocations: 94.52 kB / 1.427 GB, free: 192.6 MB / 0.9167 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Interfaces/Source.mo:28:9-28:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:19:3-19:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.4481/1.789, allocations: 221.4 MB / 1.643 GB, free: 13.96 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.805e-06/1.789, allocations: 0 / 1.643 GB, free: 13.96 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0002666/1.79, allocations: 79.92 kB / 1.643 GB, free: 13.89 MB / 0.9323 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.01319/1.803, allocations: 4.205 MB / 1.647 GB, free: 9.574 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.944e-05/1.803, allocations: 12.55 kB / 1.647 GB, free: 9.562 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001799/1.805, allocations: 362.2 kB / 1.648 GB, free: 9.199 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01761/1.822, allocations: 3.237 MB / 1.651 GB, free: 5.953 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009555/1.832, allocations: 2.577 MB / 1.653 GB, free: 3.305 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004951/1.833, allocations: 469.7 kB / 1.654 GB, free: 2.781 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00138/1.834, allocations: 232 kB / 1.654 GB, free: 2.555 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01225/1.846, allocations: 4.821 MB / 1.659 GB, free: 13.59 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.81e-05/1.846, allocations: 0 / 1.659 GB, free: 13.59 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003843/1.847, allocations: 99.98 kB / 1.659 GB, free: 13.49 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001743/1.847, allocations: 144.8 kB / 1.659 GB, free: 13.35 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0146/1.862, allocations: 5.296 MB / 1.664 GB, free: 8.035 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03106/1.893, allocations: 14.87 MB / 1.679 GB, free: 7.992 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0108/1.904, allocations: 3.631 MB / 1.682 GB, free: 4.344 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002603/1.904, allocations: 21.3 kB / 1.682 GB, free: 4.324 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00493/1.909, allocations: 1.908 MB / 1.684 GB, free: 2.352 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=163): time 4.899e-06/1.909, allocations: 0 / 1.684 GB, free: 2.352 MB / 0.9636 GB Notification: Performance of matching and sorting (n=250): time 0.1376/2.046, allocations: 34.34 MB / 1.718 GB, free: 15.79 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004401/2.047, allocations: 0.8944 MB / 1.718 GB, free: 14.68 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003698/2.051, allocations: 1.989 MB / 1.72 GB, free: 12.69 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 0.0005742/2.051, allocations: 85.69 kB / 1.72 GB, free: 12.6 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 0.001231/2.052, allocations: 1.434 MB / 1.722 GB, free: 11.15 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008697/2.053, allocations: 0.8124 MB / 1.723 GB, free: 10.32 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001927/2.054, allocations: 48 kB / 1.723 GB, free: 10.28 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0001765/2.054, allocations: 394.7 kB / 1.723 GB, free: 9.887 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005175/2.059, allocations: 2.112 MB / 1.725 GB, free: 7.77 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005274/2.064, allocations: 2.511 MB / 1.728 GB, free: 5.121 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005075/2.069, allocations: 2.312 MB / 1.73 GB, free: 2.758 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/2.069, allocations: 0 / 1.73 GB, free: 2.758 MB / 1.01 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01828/2.088, allocations: 6.915 MB / 1.737 GB, free: 11.75 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001381/2.088, allocations: 148.5 kB / 1.737 GB, free: 11.57 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.935e-05/2.088, allocations: 8 kB / 1.737 GB, free: 11.56 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01002/2.098, allocations: 2.958 MB / 1.74 GB, free: 8.605 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00322/2.101, allocations: 0.5695 MB / 1.74 GB, free: 8.035 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03718/2.138, allocations: 18.14 MB / 1.758 GB, free: 5.664 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004834/2.143, allocations: 439.4 kB / 1.758 GB, free: 5.234 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003641/2.144, allocations: 91.91 kB / 1.758 GB, free: 5.145 MB / 1.042 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,48.0%) 52} * Non-linear torn systems: 1 {9 63} Notification: Performance of prepare postOptimizeDAE: time 0.001904/2.145, allocations: 0.7133 MB / 1.759 GB, free: 4.426 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006593/2.146, allocations: 344 kB / 1.759 GB, free: 4.086 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008297/2.147, allocations: 380.1 kB / 1.76 GB, free: 3.707 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.832e-05/2.147, allocations: 24 kB / 1.76 GB, free: 3.684 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.54e-05/2.147, allocations: 12 kB / 1.76 GB, free: 3.672 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/2.147, allocations: 15.94 kB / 1.76 GB, free: 3.656 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005006/2.152, allocations: 3.644 MB / 1.763 GB, free: 15.95 MB / 1.057 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.096e-05/2.152, allocations: 0 / 1.763 GB, free: 15.95 MB / 1.057 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002578/2.155, allocations: 0.5072 MB / 1.764 GB, free: 15.44 MB / 1.057 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00966/2.164, allocations: 2.867 MB / 1.767 GB, free: 12.56 MB / 1.057 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004266/2.165, allocations: 47.97 kB / 1.767 GB, free: 12.52 MB / 1.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03699/2.202, allocations: 17.99 MB / 1.784 GB, free: 10.25 MB / 1.073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/2.202, allocations: 0 / 1.784 GB, free: 10.25 MB / 1.073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01834/2.22, allocations: 6.54 MB / 1.791 GB, free: 3.672 MB / 1.073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003238/2.224, allocations: 0.7117 MB / 1.791 GB, free: 2.938 MB / 1.073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001162/2.225, allocations: 48 kB / 1.791 GB, free: 2.891 MB / 1.073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003912/2.229, allocations: 415.6 kB / 1.792 GB, free: 2.484 MB / 1.073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001252/2.23, allocations: 366.6 kB / 1.792 GB, free: 2.125 MB / 1.073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002466/2.23, allocations: 67.97 kB / 1.792 GB, free: 2.059 MB / 1.073 GB Notification: Performance of sorting global known variables: time 0.002745/2.233, allocations: 1.517 MB / 1.794 GB, free: 0.543 MB / 1.073 GB Notification: Performance of sort global known variables: time 1.81e-07/2.233, allocations: 0 / 1.794 GB, free: 0.543 MB / 1.073 GB Notification: Performance of remove unused functions: time 0.003749/2.237, allocations: 1.066 MB / 1.795 GB, free: 15.47 MB / 1.089 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 {8 64} Notification: Performance of Backend phase and start with SimCode phase: time 0.0182/2.255, allocations: 7.197 MB / 1.802 GB, free: 8.242 MB / 1.089 GB Notification: Performance of simCode: created initialization part: time 0.02234/2.277, allocations: 6.834 MB / 1.808 GB, free: 1.309 MB / 1.089 GB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/2.277, allocations: 0 / 1.808 GB, free: 1.309 MB / 1.089 GB Notification: Performance of simCode: created simulation system equations: time 0.01778/2.295, allocations: 4.213 MB / 1.813 GB, free: 13.06 MB / 1.104 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005049/2.3, allocations: 1.017 MB / 1.814 GB, free: 12.05 MB / 1.104 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05783/2.358, allocations: 30.58 MB / 1.843 GB, free: 11.96 MB / 1.135 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002098/2.36, allocations: 2.297 MB / 1.846 GB, free: 9.633 MB / 1.135 GB Notification: Performance of simCode: alias equations: time 0.003037/2.363, allocations: 0.5136 MB / 1.846 GB, free: 9.113 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001896/2.365, allocations: 1.323 MB / 1.847 GB, free: 7.789 MB / 1.135 GB Notification: Performance of SimCode: time 1.122e-06/2.365, allocations: 0 / 1.847 GB, free: 7.789 MB / 1.135 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7337/3.099, allocations: 97.79 MB / 1.943 GB, free: 271.3 MB / 1.135 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002391/3.099, allocations: 217.9 kB / 1.943 GB, free: 271.1 MB / 1.135 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.737/8.836, allocations: 0 / 1.943 GB, free: 271.1 MB / 1.135 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat does not exist to compare? outputFormat=mat