Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_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.384/2.384, 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.001407/0.001407, allocations: 172.8 kB / 487.4 MB, free: 5.027 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.461/1.461, allocations: 221.5 MB / 0.7824 GB, free: 0.918 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.0009272/0.0009272, allocations: 99.78 kB / 0.9219 GB, free: 2.152 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.957e-05/1.928e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3209, allocations: 142.4 MB / 1.206 GB, free: 43.85 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.08/1.401, allocations: 198.8 MB / 1.4 GB, free: 9.336 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003043/1.401, allocations: 95 kB / 1.4 GB, free: 9.285 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.107/1.508, allocations: 43.74 MB / 1.443 GB, free: 4.57 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.003e-06/1.508, allocations: 0 / 1.443 GB, free: 4.57 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 9.284e-05/1.508, allocations: 19.98 kB / 1.443 GB, free: 4.551 MB / 0.8542 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.002141/1.511, allocations: 0.8135 MB / 1.444 GB, free: 3.738 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.808e-05/1.511, allocations: 8.031 kB / 1.444 GB, free: 3.73 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001539/1.512, allocations: 202.8 kB / 1.444 GB, free: 3.531 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/1.513, allocations: 0.4921 MB / 1.444 GB, free: 3.047 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.877e-05/1.513, allocations: 16 kB / 1.444 GB, free: 3.031 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000157/1.513, allocations: 35.98 kB / 1.445 GB, free: 2.996 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008245/1.514, allocations: 461.2 kB / 1.445 GB, free: 2.707 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/1.515, allocations: 0.7833 MB / 1.446 GB, free: 1.977 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.628e-05/1.515, allocations: 4 kB / 1.446 GB, free: 1.973 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.805e-05/1.515, allocations: 4 kB / 1.446 GB, free: 1.969 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.141e-05/1.516, allocations: 44.5 kB / 1.446 GB, free: 1.93 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004654/1.52, allocations: 4.495 MB / 1.45 GB, free: 13.5 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004413/1.521, allocations: 283.8 kB / 1.45 GB, free: 13.3 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002789/1.521, allocations: 212.4 kB / 1.451 GB, free: 13.17 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.672e-05/1.521, allocations: 4 kB / 1.451 GB, free: 13.17 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.734e-05/1.521, allocations: 30.56 kB / 1.451 GB, free: 13.13 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=33): time 3.065e-06/1.521, allocations: 7.938 kB / 1.451 GB, free: 13.12 MB / 0.8698 GB Notification: Performance of matching and sorting (n=40): time 0.00395/1.525, allocations: 1.975 MB / 1.453 GB, free: 11.47 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.779e-05/1.525, allocations: 55.41 kB / 1.453 GB, free: 11.4 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003749/1.525, allocations: 338 kB / 1.453 GB, free: 11.14 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/1.526, allocations: 25.7 kB / 1.453 GB, free: 11.11 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000221/1.526, allocations: 348.2 kB / 1.453 GB, free: 10.83 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/1.526, allocations: 137.2 kB / 1.453 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.523e-05/1.526, allocations: 0 / 1.453 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001644/1.526, allocations: 362.2 kB / 1.454 GB, free: 10.37 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002979/1.526, allocations: 217.3 kB / 1.454 GB, free: 10.24 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004071/1.527, allocations: 361.8 kB / 1.454 GB, free: 9.906 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003826/1.527, allocations: 276.8 kB / 1.455 GB, free: 9.727 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/1.527, allocations: 4 kB / 1.455 GB, free: 9.723 MB / 0.8698 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001537/1.529, allocations: 0.8172 MB / 1.455 GB, free: 9.086 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.674e-05/1.529, allocations: 8.562 kB / 1.455 GB, free: 9.078 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/1.529, allocations: 4 kB / 1.455 GB, free: 9.074 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007955/1.53, allocations: 221.5 kB / 1.456 GB, free: 8.887 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005381/1.53, allocations: 107.2 kB / 1.456 GB, free: 8.785 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005004/1.535, allocations: 4.739 MB / 1.46 GB, free: 4.164 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007011/1.536, allocations: 19.97 kB / 1.46 GB, free: 4.145 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.561e-05/1.536, allocations: 27.38 kB / 1.46 GB, free: 4.121 MB / 0.8698 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 () * 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.0002498/1.536, allocations: 120.4 kB / 1.461 GB, free: 4 MB / 0.8698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001514/1.538, allocations: 0.676 MB / 1.461 GB, free: 3.473 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000113/1.538, allocations: 63.3 kB / 1.461 GB, free: 3.41 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001572/1.54, allocations: 0.7155 MB / 1.462 GB, free: 2.875 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/1.54, allocations: 8 kB / 1.462 GB, free: 2.867 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/1.54, allocations: 3.953 kB / 1.462 GB, free: 2.863 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/1.54, allocations: 3.984 kB / 1.462 GB, free: 2.859 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002667/1.542, allocations: 1.363 MB / 1.463 GB, free: 1.727 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/1.542, allocations: 0 / 1.463 GB, free: 1.727 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004202/1.543, allocations: 68.16 kB / 1.463 GB, free: 1.66 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007163/1.543, allocations: 199 kB / 1.464 GB, free: 1.492 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.538e-05/1.543, allocations: 4 kB / 1.464 GB, free: 1.488 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005678/1.549, allocations: 4.671 MB / 1.468 GB, free: 12.91 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/1.549, allocations: 0 / 1.468 GB, free: 12.91 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002252/1.551, allocations: 1.152 MB / 1.469 GB, free: 11.95 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003389/1.552, allocations: 166 kB / 1.469 GB, free: 11.79 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.568e-05/1.552, allocations: 8.062 kB / 1.469 GB, free: 11.78 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003365/1.552, allocations: 19.97 kB / 1.469 GB, free: 11.76 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.918e-05/1.552, allocations: 41.22 kB / 1.469 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.171e-05/1.552, allocations: 10.56 kB / 1.47 GB, free: 11.72 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0003772/1.553, allocations: 257.9 kB / 1.47 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/1.553, allocations: 0 / 1.47 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0008231/1.554, allocations: 156 kB / 1.47 GB, free: 11.37 MB / 0.8855 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 () * 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.002376/1.556, allocations: 2.203 MB / 1.472 GB, free: 9.371 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001719/1.558, allocations: 0.9377 MB / 1.473 GB, free: 8.598 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/1.558, allocations: 0 / 1.473 GB, free: 8.598 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0009399/1.559, allocations: 0.6394 MB / 1.474 GB, free: 8.023 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009321/1.56, allocations: 144.1 kB / 1.474 GB, free: 7.91 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002352/1.562, allocations: 1.075 MB / 1.475 GB, free: 6.879 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006627/1.563, allocations: 0.963 MB / 1.476 GB, free: 5.906 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0004183/1.563, allocations: 104.6 kB / 1.476 GB, free: 5.805 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002665/1.563, allocations: 206.1 kB / 1.476 GB, free: 5.754 MB / 0.8855 GB Notification: Performance of SimCode: time 1.313e-06/1.563, allocations: 0 / 1.476 GB, free: 5.754 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04069/1.604, allocations: 11.97 MB / 1.488 GB, free: 9.91 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002641/1.604, allocations: 158 kB / 1.488 GB, free: 9.719 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.67/4.275, allocations: 0 / 1.488 GB, free: 9.719 MB / 0.9011 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat does not exist to compare? outputFormat=mat