Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.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.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_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_latest_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 10.0.0-master/package.mo): time 2.555/2.555, allocations: 390.5 MB / 398 MB, free: 10.92 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.001213/0.001214, allocations: 176.9 kB / 491.2 MB, free: 1.59 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.511/1.511, allocations: 221.5 MB / 0.7868 GB, free: 13.28 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.001099/0.001099, allocations: 95.83 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.839e-05/1.841e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3188, allocations: 143 MB / 1.212 GB, free: 39.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.219/1.538, allocations: 199.6 MB / 1.407 GB, free: 1.203 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003238/1.538, allocations: 98.2 kB / 1.407 GB, free: 1.148 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1087/1.647, allocations: 43.73 MB / 1.45 GB, free: 12.45 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.633e-06/1.647, allocations: 4 kB / 1.45 GB, free: 12.44 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.669e-05/1.647, allocations: 19.98 kB / 1.45 GB, free: 12.42 MB / 0.8698 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.00163/1.649, allocations: 0.8092 MB / 1.451 GB, free: 11.61 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.172e-05/1.649, allocations: 12.03 kB / 1.451 GB, free: 11.6 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001481/1.65, allocations: 198.8 kB / 1.451 GB, free: 11.41 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/1.652, allocations: 0.4954 MB / 1.452 GB, free: 10.92 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/1.652, allocations: 16 kB / 1.452 GB, free: 10.9 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001546/1.652, allocations: 35.06 kB / 1.452 GB, free: 10.87 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007983/1.653, allocations: 462 kB / 1.452 GB, free: 10.58 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/1.654, allocations: 0.7825 MB / 1.453 GB, free: 9.848 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.757e-05/1.654, allocations: 7.984 kB / 1.453 GB, free: 9.84 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.039e-05/1.654, allocations: 7.953 kB / 1.453 GB, free: 9.832 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.979e-05/1.654, allocations: 45.17 kB / 1.453 GB, free: 9.793 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004882/1.659, allocations: 4.493 MB / 1.457 GB, free: 5.363 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004601/1.659, allocations: 283.9 kB / 1.458 GB, free: 5.172 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002974/1.66, allocations: 214.4 kB / 1.458 GB, free: 5.039 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.15e-05/1.66, allocations: 4 kB / 1.458 GB, free: 5.035 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/1.66, allocations: 30.56 kB / 1.458 GB, free: 4.996 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=33): time 3.256e-06/1.66, allocations: 0 / 1.458 GB, free: 4.996 MB / 0.8698 GB Notification: Performance of matching and sorting (n=40): time 0.004019/1.664, allocations: 1.984 MB / 1.46 GB, free: 3.336 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.007e-05/1.664, allocations: 59.41 kB / 1.46 GB, free: 3.266 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003956/1.664, allocations: 335.5 kB / 1.46 GB, free: 3 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 4.02e-05/1.664, allocations: 25.7 kB / 1.46 GB, free: 2.969 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002411/1.664, allocations: 346.2 kB / 1.46 GB, free: 2.699 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/1.665, allocations: 138.4 kB / 1.461 GB, free: 2.578 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.697e-05/1.665, allocations: 0 / 1.461 GB, free: 2.578 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001896/1.665, allocations: 363.4 kB / 1.461 GB, free: 2.234 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003099/1.665, allocations: 216.1 kB / 1.461 GB, free: 2.102 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004208/1.666, allocations: 364.9 kB / 1.462 GB, free: 1.77 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003867/1.666, allocations: 277.9 kB / 1.462 GB, free: 1.59 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/1.666, allocations: 4 kB / 1.462 GB, free: 1.586 MB / 0.8698 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001558/1.668, allocations: 0.8166 MB / 1.463 GB, free: 0.9492 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 3.169e-05/1.668, allocations: 8 kB / 1.463 GB, free: 0.9414 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/1.668, allocations: 4.562 kB / 1.463 GB, free: 0.9375 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007756/1.668, allocations: 215.5 kB / 1.463 GB, free: 0.7539 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005444/1.669, allocations: 115.3 kB / 1.463 GB, free: 0.6445 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005015/1.674, allocations: 4.726 MB / 1.468 GB, free: 12.03 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004847/1.675, allocations: 19.97 kB / 1.468 GB, free: 12.01 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.35e-05/1.675, allocations: 26.8 kB / 1.468 GB, free: 11.99 MB / 0.8855 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.000167/1.675, allocations: 120.9 kB / 1.468 GB, free: 11.86 MB / 0.8855 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001363/1.676, allocations: 0.6717 MB / 1.468 GB, free: 11.34 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.847e-05/1.676, allocations: 67.23 kB / 1.468 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001447/1.678, allocations: 0.7094 MB / 1.469 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/1.678, allocations: 15.95 kB / 1.469 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/1.678, allocations: 0 / 1.469 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/1.678, allocations: 0 / 1.469 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002348/1.68, allocations: 1.359 MB / 1.47 GB, free: 9.602 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/1.68, allocations: 0 / 1.47 GB, free: 9.602 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003914/1.68, allocations: 74.52 kB / 1.471 GB, free: 9.531 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006866/1.681, allocations: 202.7 kB / 1.471 GB, free: 9.359 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.149e-05/1.681, allocations: 7.953 kB / 1.471 GB, free: 9.352 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004796/1.686, allocations: 4.663 MB / 1.475 GB, free: 4.777 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/1.686, allocations: 0 / 1.475 GB, free: 4.777 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001852/1.688, allocations: 1.15 MB / 1.476 GB, free: 3.82 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002767/1.688, allocations: 170.3 kB / 1.477 GB, free: 3.652 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.33e-05/1.688, allocations: 4.062 kB / 1.477 GB, free: 3.648 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003231/1.689, allocations: 23.97 kB / 1.477 GB, free: 3.625 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.074e-05/1.689, allocations: 39.59 kB / 1.477 GB, free: 3.594 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.829e-05/1.689, allocations: 8 kB / 1.477 GB, free: 3.586 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0003337/1.689, allocations: 260.5 kB / 1.477 GB, free: 3.391 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.91e-07/1.689, allocations: 3.938 kB / 1.477 GB, free: 3.387 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0008425/1.69, allocations: 156 kB / 1.477 GB, free: 3.234 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.002366/1.692, allocations: 2.208 MB / 1.479 GB, free: 1.227 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001634/1.694, allocations: 0.934 MB / 1.48 GB, free: 468 kB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/1.694, allocations: 0 / 1.48 GB, free: 468 kB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0009564/1.695, allocations: 0.6344 MB / 1.481 GB, free: 15.89 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008261/1.696, allocations: 140 kB / 1.481 GB, free: 15.78 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002223/1.698, allocations: 1.09 MB / 1.482 GB, free: 14.73 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006459/1.699, allocations: 0.9595 MB / 1.483 GB, free: 13.77 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0003954/1.699, allocations: 112.6 kB / 1.483 GB, free: 13.66 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/1.699, allocations: 206.8 kB / 1.483 GB, free: 13.61 MB / 0.9011 GB Notification: Performance of SimCode: time 6.41e-07/1.699, allocations: 0 / 1.483 GB, free: 13.61 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0364/1.736, allocations: 11.96 MB / 1.495 GB, free: 1.762 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002078/1.736, allocations: 158.8 kB / 1.495 GB, free: 1.574 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.361/4.097, allocations: 0 / 1.495 GB, free: 1.574 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat does not exist to compare? outputFormat=mat