Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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_RL,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",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.362/2.362, allocations: 390.3 MB / 405.3 MB, free: 13.47 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.0011/0.0011, allocations: 181.1 kB / 498.1 MB, free: 5.738 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.495/1.495, allocations: 223.2 MB / 0.7948 GB, free: 17.88 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.0009212/0.0009214, allocations: 96.97 kB / 0.9346 GB, free: 6.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003555/0.0003556, allocations: 17.19 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.303, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2359/0.539, allocations: 192.9 MB / 1.411 GB, free: 1.055 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003274/0.5394, allocations: 103.9 kB / 1.411 GB, free: 0.9531 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.6469/1.186, allocations: 34.41 MB / 1.445 GB, free: 193 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.444e-06/1.186, allocations: 0 / 1.445 GB, free: 193 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 7.161e-05/1.186, allocations: 21.03 kB / 1.445 GB, free: 193 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.0022/1.189, allocations: 0.8771 MB / 1.446 GB, free: 192.4 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/1.189, allocations: 10.06 kB / 1.446 GB, free: 192.4 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002836/1.189, allocations: 99.56 kB / 1.446 GB, free: 192.4 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00165/1.191, allocations: 199.5 kB / 1.446 GB, free: 192.3 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001254/1.192, allocations: 0.4894 MB / 1.447 GB, free: 192.1 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.193e-05/1.192, allocations: 39.97 kB / 1.447 GB, free: 192.1 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002203/1.192, allocations: 57.28 kB / 1.447 GB, free: 192.1 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001598/1.194, allocations: 0.8641 MB / 1.448 GB, free: 191.7 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.527e-05/1.194, allocations: 9.312 kB / 1.448 GB, free: 191.7 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.29e-05/1.194, allocations: 28.7 kB / 1.448 GB, free: 191.7 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.792e-05/1.194, allocations: 45.34 kB / 1.448 GB, free: 191.7 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001249/1.195, allocations: 0.572 MB / 1.448 GB, free: 191.7 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005135/1.2, allocations: 4.587 MB / 1.453 GB, free: 188 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005145/1.201, allocations: 291.1 kB / 1.453 GB, free: 187.9 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 3.311e-05/1.201, allocations: 7.344 kB / 1.453 GB, free: 187.9 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/1.201, allocations: 36.62 kB / 1.453 GB, free: 187.8 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=33): time 3.307e-06/1.201, allocations: 1.375 kB / 1.453 GB, free: 187.8 MB / 0.9167 GB Notification: Performance of matching and sorting (n=40): time 0.006055/1.207, allocations: 2.64 MB / 1.456 GB, free: 186.4 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/1.207, allocations: 59.34 kB / 1.456 GB, free: 186.4 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006705/1.208, allocations: 395.9 kB / 1.456 GB, free: 186.2 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 5.194e-05/1.208, allocations: 32.36 kB / 1.456 GB, free: 186.1 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002249/1.208, allocations: 333.9 kB / 1.456 GB, free: 185.9 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/1.208, allocations: 144.7 kB / 1.457 GB, free: 185.8 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.818e-05/1.208, allocations: 10.5 kB / 1.457 GB, free: 185.8 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.000124/1.209, allocations: 366.4 kB / 1.457 GB, free: 185.4 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004182/1.209, allocations: 232.1 kB / 1.457 GB, free: 185.3 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000493/1.209, allocations: 388.7 kB / 1.457 GB, free: 185.1 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004517/1.21, allocations: 290.2 kB / 1.458 GB, free: 184.9 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/1.21, allocations: 1.469 kB / 1.458 GB, free: 184.9 MB / 0.9167 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001937/1.212, allocations: 0.8938 MB / 1.459 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 3.511e-05/1.212, allocations: 9.312 kB / 1.459 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.309e-05/1.212, allocations: 11.66 kB / 1.459 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001004/1.213, allocations: 225.9 kB / 1.459 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006255/1.214, allocations: 112.6 kB / 1.459 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005692/1.219, allocations: 5.01 MB / 1.464 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008037/1.22, allocations: 26.5 kB / 1.464 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.266e-05/1.22, allocations: 26.83 kB / 1.464 GB, free: 180.1 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 52 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005842/1.221, allocations: 233.1 kB / 1.464 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001795/1.221, allocations: 53.75 kB / 1.464 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001479/1.222, allocations: 0.7664 MB / 1.465 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/1.223, allocations: 3.812 kB / 1.465 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/1.223, allocations: 7.906 kB / 1.465 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/1.223, allocations: 0 / 1.465 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002426/1.225, allocations: 1.485 MB / 1.466 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/1.225, allocations: 0 / 1.466 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000394/1.225, allocations: 69.86 kB / 1.466 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006811/1.226, allocations: 207.9 kB / 1.467 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.957e-05/1.226, allocations: 15.38 kB / 1.467 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003926/1.23, allocations: 4.94 MB / 1.471 GB, free: 174.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/1.23, allocations: 3.844 kB / 1.471 GB, free: 174.4 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001708/1.232, allocations: 1.214 MB / 1.473 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003297/1.232, allocations: 170.8 kB / 1.473 GB, free: 173.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001271/1.232, allocations: 11.19 kB / 1.473 GB, free: 173.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004077/1.233, allocations: 27.19 kB / 1.473 GB, free: 173.5 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.465e-05/1.233, allocations: 34.34 kB / 1.473 GB, free: 173.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.094e-05/1.233, allocations: 15.22 kB / 1.473 GB, free: 173.5 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0003667/1.233, allocations: 311.1 kB / 1.473 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.5e-07/1.233, allocations: 0 / 1.473 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0008907/1.234, allocations: 178 kB / 1.473 GB, free: 173.3 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001977/1.236, allocations: 2.247 MB / 1.476 GB, free: 171.6 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001543/1.238, allocations: 0.9957 MB / 1.477 GB, free: 171 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/1.238, allocations: 0 / 1.477 GB, free: 171 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0008138/1.239, allocations: 0.6836 MB / 1.477 GB, free: 170.5 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007992/1.239, allocations: 156.8 kB / 1.477 GB, free: 170.4 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005965/1.245, allocations: 6.819 MB / 1.484 GB, free: 164.8 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000407/1.246, allocations: 0.9608 MB / 1.485 GB, free: 164 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0004042/1.246, allocations: 110.2 kB / 1.485 GB, free: 163.9 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002353/1.246, allocations: 207.9 kB / 1.485 GB, free: 163.8 MB / 0.9167 GB Notification: Performance of SimCode: time 7.604e-06/1.246, allocations: 0 / 1.485 GB, free: 163.8 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03201/1.278, allocations: 13.21 MB / 1.498 GB, free: 151.3 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001861/1.279, allocations: 207.2 kB / 1.498 GB, free: 151 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.209/3.488, allocations: 0 / 1.498 GB, free: 151 MB / 0.9167 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat does not exist to compare? outputFormat=mat