Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",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.473/2.473, allocations: 390.3 MB / 402.8 MB, free: 6.676 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.001392/0.001392, allocations: 176.8 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.593/1.593, allocations: 221.3 MB / 0.7915 GB, free: 5.398 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.001317/0.001317, allocations: 103.9 kB / 0.9317 GB, free: 5.711 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.307e-05/3.309e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.3316, allocations: 143 MB / 1.219 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.14/1.471, allocations: 183.2 MB / 1.398 GB, free: 4.516 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003223/1.472, allocations: 92.19 kB / 1.398 GB, free: 4.465 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.4618/1.933, allocations: 193.4 MB / 1.587 GB, free: 7.605 MB / 1.042 GB Notification: Performance of FrontEnd: time 2.905e-06/1.934, allocations: 0 / 1.587 GB, free: 7.605 MB / 1.042 GB Notification: Performance of Transformations before backend: time 0.0004713/1.934, allocations: 135.9 kB / 1.587 GB, free: 7.473 MB / 1.042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01765/1.952, allocations: 4.152 MB / 1.591 GB, free: 3.258 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 6.669e-05/1.952, allocations: 12.03 kB / 1.591 GB, free: 3.246 MB / 1.042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003752/1.956, allocations: 0.6904 MB / 1.592 GB, free: 2.547 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008064/1.964, allocations: 1.016 MB / 1.593 GB, free: 1.523 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01035/1.974, allocations: 3.221 MB / 1.596 GB, free: 14.25 MB / 1.057 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005713/1.975, allocations: 357.7 kB / 1.596 GB, free: 13.89 MB / 1.057 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003146/1.978, allocations: 472 kB / 1.597 GB, free: 13.43 MB / 1.057 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02184/2, allocations: 7.418 MB / 1.604 GB, free: 5.543 MB / 1.057 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001374/2, allocations: 23.73 kB / 1.604 GB, free: 5.52 MB / 1.057 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006564/2.001, allocations: 220 kB / 1.604 GB, free: 5.305 MB / 1.057 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003274/2.001, allocations: 269.2 kB / 1.604 GB, free: 5.039 MB / 1.057 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01178/2.013, allocations: 5.307 MB / 1.609 GB, free: 15.72 MB / 1.073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04588/2.059, allocations: 36.25 MB / 1.645 GB, free: 8.238 MB / 1.104 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003504/2.062, allocations: 2.125 MB / 1.647 GB, free: 6.098 MB / 1.104 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00207/2.064, allocations: 1.455 MB / 1.648 GB, free: 4.641 MB / 1.104 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001126/2.064, allocations: 17.31 kB / 1.648 GB, free: 4.621 MB / 1.104 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.814e-05/2.065, allocations: 55.88 kB / 1.648 GB, free: 4.559 MB / 1.104 GB Notification: Performance of pre-optimization done (n=157): time 6.072e-06/2.065, allocations: 0 / 1.648 GB, free: 4.559 MB / 1.104 GB Notification: Performance of matching and sorting (n=160): time 0.01121/2.076, allocations: 4.981 MB / 1.653 GB, free: 15.52 MB / 1.12 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.853e-05/2.076, allocations: 68.72 kB / 1.653 GB, free: 15.44 MB / 1.12 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002824/2.079, allocations: 1.539 MB / 1.655 GB, free: 13.87 MB / 1.12 GB Notification: Performance of collectPreVariables (initialization): time 0.0001471/2.079, allocations: 57.7 kB / 1.655 GB, free: 13.81 MB / 1.12 GB Notification: Performance of collectInitialEqns (initialization): time 0.001794/2.081, allocations: 2.096 MB / 1.657 GB, free: 11.69 MB / 1.12 GB Notification: Performance of collectInitialBindings (initialization): time 0.000648/2.081, allocations: 0.5546 MB / 1.657 GB, free: 11.13 MB / 1.12 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/2.081, allocations: 40 kB / 1.658 GB, free: 11.09 MB / 1.12 GB Notification: Performance of setup shared object (initialization): time 0.0002396/2.082, allocations: 394 kB / 1.658 GB, free: 10.7 MB / 1.12 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001548/2.083, allocations: 0.9921 MB / 1.659 GB, free: 9.703 MB / 1.12 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002142/2.085, allocations: 1.717 MB / 1.661 GB, free: 7.648 MB / 1.12 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001866/2.087, allocations: 1.289 MB / 1.662 GB, free: 6.359 MB / 1.12 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/2.087, allocations: 4 kB / 1.662 GB, free: 6.355 MB / 1.12 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.006788/2.094, allocations: 3.768 MB / 1.665 GB, free: 2.539 MB / 1.12 GB Notification: Performance of prepare postOptimizeDAE: time 3.716e-05/2.094, allocations: 16 kB / 1.666 GB, free: 2.523 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.98e-05/2.094, allocations: 20 kB / 1.666 GB, free: 2.504 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002469/2.097, allocations: 0.9124 MB / 1.666 GB, free: 1.555 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/2.098, allocations: 423.2 kB / 1.667 GB, free: 1.141 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02245/2.121, allocations: 21 MB / 1.687 GB, free: 10.54 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002385/2.123, allocations: 119.9 kB / 1.687 GB, free: 10.42 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001628/2.123, allocations: 96 kB / 1.688 GB, free: 10.33 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 203 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004692/2.124, allocations: 249.2 kB / 1.688 GB, free: 10.08 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006325/2.124, allocations: 253.1 kB / 1.688 GB, free: 9.832 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005736/2.13, allocations: 3.225 MB / 1.691 GB, free: 6.555 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/2.13, allocations: 12 kB / 1.691 GB, free: 6.543 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/2.13, allocations: 12 kB / 1.691 GB, free: 6.531 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.652e-05/2.13, allocations: 7.969 kB / 1.691 GB, free: 6.523 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.9085/3.039, allocations: 7.48 MB / 1.699 GB, free: 290.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.275e-05/3.039, allocations: 4.625 kB / 1.699 GB, free: 290.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001625/3.04, allocations: 219.2 kB / 1.699 GB, free: 290.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003211/3.044, allocations: 0.8731 MB / 1.7 GB, free: 290.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003457/3.044, allocations: 32.28 kB / 1.7 GB, free: 290.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02155/3.066, allocations: 20.97 MB / 1.72 GB, free: 275.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.404e-05/3.066, allocations: 6.141 kB / 1.72 GB, free: 275.2 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007734/3.073, allocations: 3.671 MB / 1.724 GB, free: 274.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001929/3.075, allocations: 0.5266 MB / 1.724 GB, free: 274.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003889/3.076, allocations: 34.73 kB / 1.724 GB, free: 274.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001262/3.077, allocations: 89.31 kB / 1.724 GB, free: 274.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006017/3.078, allocations: 144 kB / 1.724 GB, free: 274.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001373/3.078, allocations: 45.84 kB / 1.724 GB, free: 274.2 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.002267/3.08, allocations: 1.16 MB / 1.726 GB, free: 274.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.71e-07/3.08, allocations: 1.156 kB / 1.726 GB, free: 274.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004673/3.085, allocations: 0.9342 MB / 1.727 GB, free: 274.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 97 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2,(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.008112/3.093, allocations: 5.39 MB / 1.732 GB, free: 271.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.007847/3.101, allocations: 4.279 MB / 1.736 GB, free: 270.2 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-05/3.101, allocations: 2 kB / 1.736 GB, free: 270.2 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.005316/3.106, allocations: 2.953 MB / 1.739 GB, free: 268.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00579/3.112, allocations: 0.713 MB / 1.74 GB, free: 268.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02871/3.141, allocations: 7.186 MB / 1.747 GB, free: 267.3 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008501/3.149, allocations: 3.289 MB / 1.75 GB, free: 266.5 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.00353/3.153, allocations: 0.5133 MB / 1.75 GB, free: 266.5 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003289/3.156, allocations: 1.679 MB / 1.752 GB, free: 266.5 MB / 1.151 GB Notification: Performance of SimCode: time 1.913e-06/3.156, allocations: 3.094 kB / 1.752 GB, free: 266.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1457/3.302, allocations: 68.2 MB / 1.819 GB, free: 264.3 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002648/3.302, allocations: 194.8 kB / 1.819 GB, free: 264.1 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.133/7.436, allocations: 4 kB / 1.819 GB, free: 264.1 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat does not exist to compare? outputFormat=mat