Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.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.DCLines,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLines,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLines",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.433/2.433, allocations: 390.5 MB / 398 MB, free: 10.96 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.001151/0.001151, allocations: 180.8 kB / 491.2 MB, free: 1.602 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.549/1.549, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.0009332/0.0009333, allocations: 93.95 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.423e-05/2.433e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3188, allocations: 143 MB / 1.212 GB, free: 39.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.105/1.424, allocations: 201.4 MB / 1.409 GB, free: 15.41 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002948/1.425, allocations: 88.39 kB / 1.409 GB, free: 15.36 MB / 0.8386 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.5501/1.975, allocations: 217.5 MB / 1.622 GB, free: 1.918 MB / 1.026 GB Notification: Performance of FrontEnd: time 2.385e-06/1.975, allocations: 0 / 1.622 GB, free: 1.918 MB / 1.026 GB Notification: Performance of Transformations before backend: time 0.000404/1.975, allocations: 79.98 kB / 1.622 GB, free: 1.84 MB / 1.026 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.01193/1.987, allocations: 3.411 MB / 1.625 GB, free: 14.33 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/1.987, allocations: 12.03 kB / 1.625 GB, free: 14.32 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01818/2.006, allocations: 3.206 MB / 1.628 GB, free: 11.1 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007512/2.013, allocations: 2.296 MB / 1.63 GB, free: 8.734 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001701/2.013, allocations: 80 kB / 1.63 GB, free: 8.656 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001031/2.014, allocations: 143.9 kB / 1.631 GB, free: 8.516 MB / 1.042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007359/2.022, allocations: 3.379 MB / 1.634 GB, free: 5.129 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007137/2.029, allocations: 3.474 MB / 1.637 GB, free: 1.52 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.277e-05/2.029, allocations: 4 kB / 1.637 GB, free: 1.516 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003149/2.029, allocations: 4 kB / 1.637 GB, free: 1.512 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001905/2.03, allocations: 144.8 kB / 1.637 GB, free: 1.367 MB / 1.042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02579/2.055, allocations: 13.85 MB / 1.651 GB, free: 2.363 MB / 1.057 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006692/2.062, allocations: 2.757 MB / 1.654 GB, free: 15.59 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001563/2.064, allocations: 1.007 MB / 1.655 GB, free: 14.58 MB / 1.073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000116/2.064, allocations: 21.22 kB / 1.655 GB, free: 14.57 MB / 1.073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001984/2.066, allocations: 1.309 MB / 1.656 GB, free: 13.2 MB / 1.073 GB Notification: Performance of pre-optimization done (n=163): time 3.256e-06/2.066, allocations: 0 / 1.656 GB, free: 13.2 MB / 1.073 GB Notification: Performance of matching and sorting (n=250): time 0.01914/2.085, allocations: 7.549 MB / 1.663 GB, free: 5.613 MB / 1.073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004961/2.086, allocations: 0.8944 MB / 1.664 GB, free: 4.512 MB / 1.073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002894/2.088, allocations: 1.568 MB / 1.666 GB, free: 2.934 MB / 1.073 GB Notification: Performance of collectPreVariables (initialization): time 0.0005138/2.089, allocations: 29.7 kB / 1.666 GB, free: 2.898 MB / 1.073 GB Notification: Performance of collectInitialEqns (initialization): time 0.001423/2.09, allocations: 1.443 MB / 1.667 GB, free: 1.441 MB / 1.073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009979/2.091, allocations: 0.7851 MB / 1.668 GB, free: 0.6445 MB / 1.073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001624/2.092, allocations: 4 kB / 1.668 GB, free: 0.6406 MB / 1.073 GB Notification: Performance of setup shared object (initialization): time 0.0002068/2.092, allocations: 398.7 kB / 1.668 GB, free: 252 kB / 1.073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001889/2.094, allocations: 1.203 MB / 1.669 GB, free: 15.04 MB / 1.089 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002249/2.096, allocations: 1.586 MB / 1.671 GB, free: 13.32 MB / 1.089 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002054/2.098, allocations: 1.292 MB / 1.672 GB, free: 12.01 MB / 1.089 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.907e-06/2.098, allocations: 4 kB / 1.672 GB, free: 12 MB / 1.089 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.009958/2.108, allocations: 4.374 MB / 1.677 GB, free: 7.57 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 0.001486/2.11, allocations: 2.408 MB / 1.679 GB, free: 4.941 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.346e-05/2.11, allocations: 4 kB / 1.679 GB, free: 4.938 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006357/2.116, allocations: 1.602 MB / 1.68 GB, free: 3.328 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003317/2.119, allocations: 0.5968 MB / 1.681 GB, free: 2.73 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01448/2.134, allocations: 8.988 MB / 1.69 GB, free: 9.59 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004809/2.139, allocations: 363.6 kB / 1.69 GB, free: 9.234 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006912/2.139, allocations: 95.97 kB / 1.69 GB, free: 9.141 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/2.139, allocations: 4 kB / 1.69 GB, free: 9.137 MB / 1.104 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008311/2.148, allocations: 3.673 MB / 1.694 GB, free: 5.414 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.941e-05/2.148, allocations: 4 kB / 1.694 GB, free: 5.41 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004014/2.152, allocations: 1.41 MB / 1.695 GB, free: 3.996 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003599/2.156, allocations: 0.6359 MB / 1.696 GB, free: 3.359 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02041/2.176, allocations: 11.76 MB / 1.707 GB, free: 7.355 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004989/2.181, allocations: 367.4 kB / 1.708 GB, free: 6.996 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007009/2.182, allocations: 95.92 kB / 1.708 GB, free: 6.902 MB / 1.12 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 165 * 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 {10 52} Notification: Performance of prepare postOptimizeDAE: time 0.001164/2.183, allocations: 163.3 kB / 1.708 GB, free: 6.738 MB / 1.12 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009369/2.192, allocations: 4.046 MB / 1.712 GB, free: 2.676 MB / 1.12 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001463/2.194, allocations: 300.5 kB / 1.712 GB, free: 2.379 MB / 1.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00117/2.195, allocations: 337.2 kB / 1.713 GB, free: 2.039 MB / 1.12 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-05/2.195, allocations: 31.94 kB / 1.713 GB, free: 2.008 MB / 1.12 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.56e-05/2.195, allocations: 8.375 kB / 1.713 GB, free: 2 MB / 1.12 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.372e-05/2.195, allocations: 11.95 kB / 1.713 GB, free: 1.988 MB / 1.12 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005401/2.201, allocations: 2.814 MB / 1.715 GB, free: 15.13 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.526e-05/2.201, allocations: 4 kB / 1.715 GB, free: 15.12 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002842/2.204, allocations: 0.515 MB / 1.716 GB, free: 14.61 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006026/2.21, allocations: 1.621 MB / 1.717 GB, free: 12.98 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005907/2.21, allocations: 19.92 kB / 1.717 GB, free: 12.96 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02452/2.235, allocations: 13.34 MB / 1.73 GB, free: 15.37 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.503e-06/2.235, allocations: 4 kB / 1.73 GB, free: 15.37 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0104/2.245, allocations: 4.178 MB / 1.735 GB, free: 11.16 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002173/2.247, allocations: 0.6418 MB / 1.735 GB, free: 10.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001126/2.249, allocations: 8 kB / 1.735 GB, free: 10.49 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003958/2.253, allocations: 367.5 kB / 1.736 GB, free: 10.13 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001155/2.254, allocations: 310.6 kB / 1.736 GB, free: 9.824 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003464/2.254, allocations: 71.97 kB / 1.736 GB, free: 9.754 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.003208/2.257, allocations: 1.161 MB / 1.737 GB, free: 8.586 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.7e-07/2.257, allocations: 0 / 1.737 GB, free: 8.586 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.006871/2.264, allocations: 1.406 MB / 1.738 GB, free: 7.18 MB / 1.151 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 116 * 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 52} Notification: Performance of Backend phase and start with SimCode phase: time 0.01078/2.275, allocations: 4.793 MB / 1.743 GB, free: 2.352 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.7322/3.007, allocations: 7.347 MB / 1.75 GB, free: 280.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-05/3.007, allocations: 7.125 kB / 1.75 GB, free: 280.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.007264/3.015, allocations: 2.672 MB / 1.753 GB, free: 280.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006123/3.021, allocations: 0.8631 MB / 1.754 GB, free: 280.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01561/3.036, allocations: 5.374 MB / 1.759 GB, free: 279.3 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003344/3.04, allocations: 2.319 MB / 1.761 GB, free: 278.5 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.005062/3.045, allocations: 0.7304 MB / 1.762 GB, free: 278.5 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002103/3.047, allocations: 1.297 MB / 1.763 GB, free: 278.5 MB / 1.151 GB Notification: Performance of SimCode: time 1.222e-06/3.047, allocations: 0 / 1.763 GB, free: 278.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1735/3.221, allocations: 92.93 MB / 1.854 GB, free: 275.5 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001715/3.221, allocations: 135.9 kB / 1.854 GB, free: 275.3 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.838/9.058, allocations: 7.188 kB / 1.854 GB, free: 275.3 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLines_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLines.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines_res.mat does not exist to compare? outputFormat=mat