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/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.319/2.319, allocations: 390.3 MB / 405.3 MB, free: 13.44 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.001106/0.001106, allocations: 183.3 kB / 498.1 MB, free: 5.695 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.439/1.439, allocations: 223.2 MB / 0.7948 GB, free: 17.86 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.001048/0.001048, allocations: 96.19 kB / 0.9346 GB, free: 6.18 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003344/0.0003344, allocations: 17.59 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2459, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2267/0.4727, allocations: 201.4 MB / 1.42 GB, free: 8.383 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003134/0.473, allocations: 91.95 kB / 1.42 GB, free: 8.293 MB / 0.9167 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.x/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.9907/1.464, allocations: 221.4 MB / 1.636 GB, free: 10.2 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.644e-06/1.464, allocations: 4 kB / 1.636 GB, free: 10.2 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0004539/1.464, allocations: 79.94 kB / 1.636 GB, free: 10.12 MB / 0.9167 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.01394/1.478, allocations: 4.213 MB / 1.64 GB, free: 5.793 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/1.478, allocations: 8.031 kB / 1.64 GB, free: 5.785 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002116/1.48, allocations: 366.1 kB / 1.64 GB, free: 5.418 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0165/1.497, allocations: 3.229 MB / 1.644 GB, free: 2.18 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008946/1.506, allocations: 2.585 MB / 1.646 GB, free: 15.52 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005876/1.507, allocations: 473.6 kB / 1.647 GB, free: 15 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001498/1.508, allocations: 228 kB / 1.647 GB, free: 14.77 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01592/1.524, allocations: 4.821 MB / 1.652 GB, free: 9.809 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001323/1.524, allocations: 3.938 kB / 1.652 GB, free: 9.805 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001315/1.526, allocations: 108 kB / 1.652 GB, free: 9.699 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000249/1.526, allocations: 144.8 kB / 1.652 GB, free: 9.555 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01651/1.542, allocations: 5.296 MB / 1.657 GB, free: 4.242 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03306/1.575, allocations: 14.86 MB / 1.671 GB, free: 4.211 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01089/1.586, allocations: 3.634 MB / 1.675 GB, free: 0.5703 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002458/1.587, allocations: 25.3 kB / 1.675 GB, free: 0.5469 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005115/1.592, allocations: 1.916 MB / 1.677 GB, free: 14.57 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=163): time 8.105e-06/1.592, allocations: 0 / 1.677 GB, free: 14.57 MB / 0.9636 GB Notification: Performance of matching and sorting (n=250): time 0.1379/1.73, allocations: 34.33 MB / 1.71 GB, free: 12.02 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003892/1.73, allocations: 0.8983 MB / 1.711 GB, free: 10.91 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003931/1.734, allocations: 1.985 MB / 1.713 GB, free: 8.914 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.000456/1.735, allocations: 77.7 kB / 1.713 GB, free: 8.832 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001373/1.736, allocations: 1.43 MB / 1.715 GB, free: 7.387 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009941/1.737, allocations: 0.8318 MB / 1.716 GB, free: 6.543 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003073/1.737, allocations: 44 kB / 1.716 GB, free: 6.5 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.0001921/1.738, allocations: 394.7 kB / 1.716 GB, free: 6.109 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005432/1.743, allocations: 2.105 MB / 1.718 GB, free: 4 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005958/1.749, allocations: 2.503 MB / 1.72 GB, free: 1.359 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005656/1.755, allocations: 2.308 MB / 1.723 GB, free: 15 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.12e-05/1.755, allocations: 4 kB / 1.723 GB, free: 15 MB / 1.01 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01878/1.773, allocations: 6.899 MB / 1.729 GB, free: 8.004 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001243/1.774, allocations: 152.4 kB / 1.73 GB, free: 7.824 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/1.774, allocations: 4.344 kB / 1.73 GB, free: 7.82 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0104/1.784, allocations: 2.954 MB / 1.732 GB, free: 4.855 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003162/1.787, allocations: 0.5774 MB / 1.733 GB, free: 4.277 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0409/1.828, allocations: 18.17 MB / 1.751 GB, free: 1.871 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004932/1.833, allocations: 427.4 kB / 1.751 GB, free: 1.453 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000425/1.834, allocations: 88.16 kB / 1.751 GB, free: 1.367 MB / 1.026 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.002077/1.836, allocations: 0.7146 MB / 1.752 GB, free: 0.6445 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008406/1.837, allocations: 340 kB / 1.752 GB, free: 316 kB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009731/1.837, allocations: 384.2 kB / 1.753 GB, free: 15.92 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.411e-05/1.838, allocations: 24 kB / 1.753 GB, free: 15.9 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.086e-05/1.838, allocations: 12 kB / 1.753 GB, free: 15.89 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.178e-05/1.838, allocations: 11.95 kB / 1.753 GB, free: 15.88 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005507/1.843, allocations: 3.655 MB / 1.756 GB, free: 12.16 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.276e-05/1.843, allocations: 0 / 1.756 GB, free: 12.16 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002692/1.846, allocations: 0.4993 MB / 1.757 GB, free: 11.66 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009712/1.856, allocations: 2.867 MB / 1.76 GB, free: 8.793 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004952/1.856, allocations: 51.97 kB / 1.76 GB, free: 8.742 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03716/1.893, allocations: 17.98 MB / 1.777 GB, free: 6.492 MB / 1.057 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.893, allocations: 0 / 1.777 GB, free: 6.492 MB / 1.057 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01926/1.913, allocations: 6.552 MB / 1.784 GB, free: 15.9 MB / 1.073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002169/1.915, allocations: 0.7078 MB / 1.784 GB, free: 15.17 MB / 1.073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005148/1.915, allocations: 48 kB / 1.784 GB, free: 15.12 MB / 1.073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003262/1.919, allocations: 419.6 kB / 1.785 GB, free: 14.71 MB / 1.073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001232/1.92, allocations: 370.5 kB / 1.785 GB, free: 14.36 MB / 1.073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002085/1.92, allocations: 67.98 kB / 1.785 GB, free: 14.29 MB / 1.073 GB Notification: Performance of sorting global known variables: time 0.002251/1.922, allocations: 1.525 MB / 1.787 GB, free: 12.77 MB / 1.073 GB Notification: Performance of sort global known variables: time 1.2e-07/1.922, allocations: 0 / 1.787 GB, free: 12.77 MB / 1.073 GB Notification: Performance of remove unused functions: time 0.003481/1.926, allocations: 1.062 MB / 1.788 GB, free: 11.7 MB / 1.073 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.01847/1.944, allocations: 7.208 MB / 1.795 GB, free: 4.449 MB / 1.073 GB Notification: Performance of simCode: created initialization part: time 0.03404/1.978, allocations: 6.821 MB / 1.801 GB, free: 13.53 MB / 1.089 GB Notification: Performance of simCode: created event and clocks part: time 1.631e-05/1.978, allocations: 7.938 kB / 1.801 GB, free: 13.52 MB / 1.089 GB Notification: Performance of simCode: created simulation system equations: time 0.02367/2.002, allocations: 4.209 MB / 1.805 GB, free: 9.289 MB / 1.089 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006595/2.009, allocations: 1.008 MB / 1.806 GB, free: 8.289 MB / 1.089 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08327/2.092, allocations: 30.59 MB / 1.836 GB, free: 8.191 MB / 1.12 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002738/2.095, allocations: 2.293 MB / 1.839 GB, free: 5.863 MB / 1.12 GB Notification: Performance of simCode: alias equations: time 0.003073/2.098, allocations: 0.5097 MB / 1.839 GB, free: 5.348 MB / 1.12 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002198/2.1, allocations: 1.323 MB / 1.84 GB, free: 4.023 MB / 1.12 GB Notification: Performance of SimCode: time 1.743e-06/2.1, allocations: 0 / 1.84 GB, free: 4.023 MB / 1.12 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6606/2.761, allocations: 97.77 MB / 1.936 GB, free: 263.5 MB / 1.12 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001749/2.761, allocations: 212.3 kB / 1.936 GB, free: 263.3 MB / 1.12 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.617/8.378, allocations: 0 / 1.936 GB, free: 263.3 MB / 1.12 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