Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.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.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid",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.25/2.25, allocations: 387.1 MB / 399.7 MB, free: 9.453 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.001319/0.001319, allocations: 180.2 kB / 492.3 MB, free: 0.6094 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.568/1.568, allocations: 221.3 MB / 0.7871 GB, free: 12.94 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.0008918/0.0008916, allocations: 96.89 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.908e-05/2.917e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2213, allocations: 142.4 MB / 1.213 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8864/1.108, allocations: 203.4 MB / 1.411 GB, free: 12.69 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/1.108, allocations: 99.17 kB / 1.411 GB, free: 12.63 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.1806/1.289, allocations: 73.67 MB / 1.483 GB, free: 13.93 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.583e-06/1.289, allocations: 0 / 1.483 GB, free: 13.93 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.0001293/1.289, allocations: 35.98 kB / 1.483 GB, free: 13.89 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 406 * Number of variables: 406 Notification: Performance of Generate backend data structure: time 0.004456/1.293, allocations: 1.563 MB / 1.485 GB, free: 12.37 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/1.293, allocations: 12.03 kB / 1.485 GB, free: 12.36 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008137/1.294, allocations: 254.1 kB / 1.485 GB, free: 12.2 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002998/1.297, allocations: 0.4962 MB / 1.485 GB, free: 11.7 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002637/1.3, allocations: 1.146 MB / 1.487 GB, free: 10.77 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/1.3, allocations: 118.2 kB / 1.487 GB, free: 10.7 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004628/1.3, allocations: 152.1 kB / 1.487 GB, free: 10.6 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00459/1.305, allocations: 2.436 MB / 1.489 GB, free: 8.891 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.096e-05/1.305, allocations: 3.938 kB / 1.489 GB, free: 8.887 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002138/1.305, allocations: 68.8 kB / 1.489 GB, free: 8.867 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.801e-05/1.305, allocations: 86.92 kB / 1.489 GB, free: 8.785 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003386/1.309, allocations: 1.975 MB / 1.491 GB, free: 7.492 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01427/1.323, allocations: 10.52 MB / 1.502 GB, free: 13.74 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/1.324, allocations: 0.5571 MB / 1.502 GB, free: 13.18 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006142/1.325, allocations: 373.2 kB / 1.503 GB, free: 12.81 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001655/1.325, allocations: 96.95 kB / 1.503 GB, free: 12.7 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/1.325, allocations: 38.56 kB / 1.503 GB, free: 12.65 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=36): time 2.735e-06/1.325, allocations: 3.938 kB / 1.503 GB, free: 12.64 MB / 0.9167 GB Notification: Performance of matching and sorting (n=52): time 0.01474/1.34, allocations: 4.781 MB / 1.507 GB, free: 7.84 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.138e-05/1.34, allocations: 89.53 kB / 1.507 GB, free: 7.734 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001283/1.341, allocations: 0.804 MB / 1.508 GB, free: 6.926 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 9.36e-05/1.341, allocations: 37.7 kB / 1.508 GB, free: 6.883 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005281/1.342, allocations: 0.7538 MB / 1.509 GB, free: 6.117 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001997/1.342, allocations: 189.4 kB / 1.509 GB, free: 5.93 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.104e-05/1.342, allocations: 16 kB / 1.509 GB, free: 5.914 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0002088/1.342, allocations: 394.8 kB / 1.51 GB, free: 5.52 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008904/1.343, allocations: 0.5953 MB / 1.51 GB, free: 4.922 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001109/1.344, allocations: 0.9567 MB / 1.511 GB, free: 3.797 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001091/1.346, allocations: 0.7721 MB / 1.512 GB, free: 3.02 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/1.346, allocations: 4 kB / 1.512 GB, free: 3.016 MB / 0.9167 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.006716/1.352, allocations: 2.769 MB / 1.515 GB, free: 236 kB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001883/1.354, allocations: 4.532 MB / 1.519 GB, free: 11.34 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.306e-05/1.354, allocations: 12 kB / 1.519 GB, free: 11.33 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005336/1.36, allocations: 1.427 MB / 1.52 GB, free: 9.891 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009295/1.361, allocations: 223.6 kB / 1.521 GB, free: 9.672 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008287/1.369, allocations: 6.82 MB / 1.527 GB, free: 2.527 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001308/1.37, allocations: 163.7 kB / 1.527 GB, free: 2.367 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001657/1.37, allocations: 43.98 kB / 1.527 GB, free: 2.324 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/1.37, allocations: 4 kB / 1.527 GB, free: 2.32 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005318/1.376, allocations: 2.243 MB / 1.53 GB, free: 76 kB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.262e-05/1.376, allocations: 12 kB / 1.53 GB, free: 64 kB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003284/1.379, allocations: 0.8643 MB / 1.53 GB, free: 15.19 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/1.38, allocations: 259.5 kB / 1.531 GB, free: 14.93 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006876/1.387, allocations: 5.376 MB / 1.536 GB, free: 9.281 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/1.388, allocations: 135.7 kB / 1.536 GB, free: 9.148 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000167/1.388, allocations: 40 kB / 1.536 GB, free: 9.109 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 95 * 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: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003761/1.389, allocations: 172.6 kB / 1.536 GB, free: 8.934 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001879/1.389, allocations: 83.25 kB / 1.536 GB, free: 8.852 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006379/1.395, allocations: 2.305 MB / 1.539 GB, free: 6.52 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/1.395, allocations: 7.984 kB / 1.539 GB, free: 6.512 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/1.395, allocations: 4 kB / 1.539 GB, free: 6.508 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/1.395, allocations: 3.984 kB / 1.539 GB, free: 6.504 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009206/1.405, allocations: 4.254 MB / 1.543 GB, free: 2.133 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/1.405, allocations: 4 kB / 1.543 GB, free: 2.129 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000422/1.405, allocations: 104.1 kB / 1.543 GB, free: 2.027 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004937/1.41, allocations: 1.357 MB / 1.544 GB, free: 0.6562 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.747e-05/1.41, allocations: 12 kB / 1.544 GB, free: 0.6445 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0119/1.422, allocations: 9.493 MB / 1.553 GB, free: 6.617 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/1.422, allocations: 4 kB / 1.553 GB, free: 6.613 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005925/1.428, allocations: 2.369 MB / 1.556 GB, free: 4.141 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006719/1.429, allocations: 280.1 kB / 1.556 GB, free: 3.848 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/1.429, allocations: 23.95 kB / 1.556 GB, free: 3.824 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007518/1.43, allocations: 115.8 kB / 1.556 GB, free: 3.711 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002435/1.43, allocations: 51.88 kB / 1.556 GB, free: 3.66 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.064e-05/1.43, allocations: 16 kB / 1.556 GB, free: 3.645 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.001163/1.431, allocations: 0.6318 MB / 1.557 GB, free: 3.02 MB / 0.9636 GB Notification: Performance of sort global known variables: time 1.7e-07/1.431, allocations: 0 / 1.557 GB, free: 3.02 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.002397/1.434, allocations: 0.621 MB / 1.557 GB, free: 2.398 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * 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: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.006662/1.44, allocations: 3.574 MB / 1.561 GB, free: 14.73 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.005444/1.446, allocations: 2.967 MB / 1.564 GB, free: 11.71 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/1.446, allocations: 0 / 1.564 GB, free: 11.71 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.001879/1.448, allocations: 1.221 MB / 1.565 GB, free: 10.44 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/1.449, allocations: 217.2 kB / 1.565 GB, free: 10.23 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005406/1.454, allocations: 2.895 MB / 1.568 GB, free: 7.262 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001487/1.456, allocations: 1.642 MB / 1.57 GB, free: 5.59 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.001581/1.457, allocations: 0.592 MB / 1.57 GB, free: 4.992 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006173/1.458, allocations: 483.3 kB / 1.571 GB, free: 4.52 MB / 0.9792 GB Notification: Performance of SimCode: time 1.032e-06/1.458, allocations: 0 / 1.571 GB, free: 4.52 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05618/1.514, allocations: 34.36 MB / 1.604 GB, free: 2.484 MB / 1.01 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001809/1.514, allocations: 204.8 kB / 1.605 GB, free: 2.262 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.657/4.171, allocations: 0 / 1.605 GB, free: 2.262 MB / 1.01 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat does not exist to compare? outputFormat=mat