Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",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.381/2.381, allocations: 387.4 MB / 394.9 MB, free: 13.34 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.001016/0.001016, allocations: 184.6 kB / 487.4 MB, free: 5.031 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.513/1.513, allocations: 221.5 MB / 0.7824 GB, free: 0.9141 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000948/0.0009482, allocations: 99.78 kB / 0.9219 GB, free: 2.148 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.431e-05/2.434e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3292, allocations: 142.4 MB / 1.206 GB, free: 43.83 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.044/1.373, allocations: 170.9 MB / 1.373 GB, free: 18.18 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002623/1.373, allocations: 93.69 kB / 1.373 GB, free: 18.18 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.08428/1.457, allocations: 39.82 MB / 1.412 GB, free: 16.25 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.683e-06/1.458, allocations: 0 / 1.412 GB, free: 16.25 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.157e-05/1.458, allocations: 20 kB / 1.412 GB, free: 16.23 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001843/1.459, allocations: 0.9583 MB / 1.413 GB, free: 15.28 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.641e-05/1.459, allocations: 12.03 kB / 1.413 GB, free: 15.27 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001663/1.461, allocations: 242.2 kB / 1.413 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001038/1.462, allocations: 0.5309 MB / 1.414 GB, free: 14.54 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.047e-05/1.462, allocations: 20 kB / 1.414 GB, free: 14.52 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.838e-05/1.462, allocations: 43.62 kB / 1.414 GB, free: 14.48 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001004/1.463, allocations: 0.5946 MB / 1.414 GB, free: 14.09 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001546/1.465, allocations: 1.017 MB / 1.415 GB, free: 13.14 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.11e-05/1.465, allocations: 7.938 kB / 1.415 GB, free: 13.13 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.951e-05/1.465, allocations: 11.98 kB / 1.415 GB, free: 13.12 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.342e-05/1.465, allocations: 52.84 kB / 1.415 GB, free: 13.07 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005728/1.471, allocations: 5.761 MB / 1.421 GB, free: 7.48 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008614/1.472, allocations: 0.5253 MB / 1.422 GB, free: 7.113 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003986/1.472, allocations: 312.4 kB / 1.422 GB, free: 6.922 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.56e-05/1.472, allocations: 4.438 kB / 1.422 GB, free: 6.918 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/1.472, allocations: 38.75 kB / 1.422 GB, free: 6.875 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=47): time 2.484e-06/1.472, allocations: 0 / 1.422 GB, free: 6.875 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.002192/1.474, allocations: 1.163 MB / 1.423 GB, free: 5.961 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.097e-05/1.475, allocations: 55.84 kB / 1.423 GB, free: 5.895 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004359/1.475, allocations: 397 kB / 1.423 GB, free: 5.582 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.89e-05/1.475, allocations: 25.7 kB / 1.423 GB, free: 5.551 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002346/1.475, allocations: 411.4 kB / 1.424 GB, free: 5.238 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001265/1.475, allocations: 164.9 kB / 1.424 GB, free: 5.094 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.795e-05/1.475, allocations: 7.938 kB / 1.424 GB, free: 5.086 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001705/1.476, allocations: 366.7 kB / 1.424 GB, free: 4.742 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003293/1.476, allocations: 249.1 kB / 1.425 GB, free: 4.594 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004919/1.476, allocations: 438.5 kB / 1.425 GB, free: 4.191 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004207/1.477, allocations: 319.1 kB / 1.425 GB, free: 3.98 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/1.477, allocations: 4 kB / 1.425 GB, free: 3.977 MB / 0.8386 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.00155/1.478, allocations: 0.9634 MB / 1.426 GB, free: 3.227 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/1.478, allocations: 8 kB / 1.426 GB, free: 3.219 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/1.479, allocations: 8 kB / 1.426 GB, free: 3.211 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008053/1.479, allocations: 260.2 kB / 1.427 GB, free: 2.992 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004677/1.48, allocations: 121.3 kB / 1.427 GB, free: 2.879 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006045/1.486, allocations: 6.33 MB / 1.433 GB, free: 12.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006692/1.487, allocations: 27.97 kB / 1.433 GB, free: 12.68 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.099e-05/1.487, allocations: 31.92 kB / 1.433 GB, free: 12.65 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000183/1.487, allocations: 120.4 kB / 1.433 GB, free: 12.53 MB / 0.8542 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001327/1.488, allocations: 0.7819 MB / 1.434 GB, free: 11.92 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.968e-05/1.488, allocations: 67.25 kB / 1.434 GB, free: 11.86 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001402/1.49, allocations: 0.8201 MB / 1.435 GB, free: 11.25 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-06/1.49, allocations: 8 kB / 1.435 GB, free: 11.25 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.257e-05/1.49, allocations: 4 kB / 1.435 GB, free: 11.24 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/1.49, allocations: 3.984 kB / 1.435 GB, free: 11.24 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002612/1.492, allocations: 1.57 MB / 1.436 GB, free: 9.977 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/1.492, allocations: 0 / 1.436 GB, free: 9.977 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002834/1.493, allocations: 59.89 kB / 1.436 GB, free: 9.918 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007347/1.493, allocations: 266.7 kB / 1.436 GB, free: 9.699 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.19e-05/1.493, allocations: 7.953 kB / 1.437 GB, free: 9.691 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006139/1.5, allocations: 6.306 MB / 1.443 GB, free: 3.539 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.417e-06/1.5, allocations: 8.156 kB / 1.443 GB, free: 3.531 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001673/1.501, allocations: 0.9923 MB / 1.444 GB, free: 2.664 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002949/1.502, allocations: 183.4 kB / 1.444 GB, free: 2.484 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.342e-05/1.502, allocations: 8.125 kB / 1.444 GB, free: 2.477 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003399/1.502, allocations: 15.97 kB / 1.444 GB, free: 2.461 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/1.502, allocations: 47.55 kB / 1.444 GB, free: 2.422 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.173e-05/1.502, allocations: 15.81 kB / 1.444 GB, free: 2.41 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0003506/1.503, allocations: 299.7 kB / 1.444 GB, free: 2.188 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.71e-07/1.503, allocations: 4 kB / 1.444 GB, free: 2.184 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.001106/1.504, allocations: 199.9 kB / 1.444 GB, free: 1.988 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002042/1.506, allocations: 1.969 MB / 1.446 GB, free: 148 kB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.002001/1.508, allocations: 1.171 MB / 1.447 GB, free: 15.16 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/1.508, allocations: 4 kB / 1.447 GB, free: 15.16 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001175/1.509, allocations: 0.8243 MB / 1.448 GB, free: 14.42 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009768/1.51, allocations: 167.9 kB / 1.448 GB, free: 14.29 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002333/1.512, allocations: 1.095 MB / 1.449 GB, free: 13.25 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007335/1.513, allocations: 1.033 MB / 1.45 GB, free: 12.21 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0004323/1.513, allocations: 113.4 kB / 1.451 GB, free: 12.1 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003813/1.514, allocations: 244.6 kB / 1.451 GB, free: 12.04 MB / 0.8698 GB Notification: Performance of SimCode: time 1.253e-06/1.514, allocations: 4 kB / 1.451 GB, free: 12.04 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04291/1.557, allocations: 14.51 MB / 1.465 GB, free: 13.67 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002835/1.557, allocations: 142.8 kB / 1.465 GB, free: 13.48 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.321/3.878, allocations: 0 / 1.465 GB, free: 13.48 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat does not exist to compare? outputFormat=mat