Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ACLineMedium,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",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.501/2.501, allocations: 390.3 MB / 405.3 MB, free: 13.38 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.00144/0.00144, allocations: 176.9 kB / 498.1 MB, free: 5.617 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.621/1.621, allocations: 223.2 MB / 0.7948 GB, free: 17.91 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.0008813/0.0008814, allocations: 88.33 kB / 0.9346 GB, free: 6.234 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003524/0.0003524, allocations: 13.22 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2808, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8807/1.162, allocations: 221.2 MB / 1.439 GB, free: 101.7 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003223/1.162, allocations: 100.6 kB / 1.439 GB, free: 101.7 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 0.2786/1.441, allocations: 125.3 MB / 1.561 GB, free: 63.69 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.763e-06/1.441, allocations: 0 / 1.561 GB, free: 63.69 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0002072/1.441, allocations: 46.58 kB / 1.561 GB, free: 63.68 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: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.005827/1.447, allocations: 1.889 MB / 1.563 GB, free: 62.41 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/1.447, allocations: 9.594 kB / 1.563 GB, free: 62.41 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008207/1.448, allocations: 191.2 kB / 1.564 GB, free: 62.34 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0112/1.459, allocations: 1.977 MB / 1.565 GB, free: 61.47 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006832/1.466, allocations: 2.078 MB / 1.567 GB, free: 60.4 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001615/1.466, allocations: 87.19 kB / 1.568 GB, free: 60.39 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008801/1.467, allocations: 116.9 kB / 1.568 GB, free: 60.38 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008205/1.475, allocations: 2.726 MB / 1.57 GB, free: 58.23 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001136/1.475, allocations: 19.78 kB / 1.57 GB, free: 58.21 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004826/1.476, allocations: 53.36 kB / 1.57 GB, free: 58.19 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001318/1.476, allocations: 88.72 kB / 1.57 GB, free: 58.11 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007651/1.483, allocations: 2.841 MB / 1.573 GB, free: 55.93 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01598/1.499, allocations: 10.72 MB / 1.584 GB, free: 45.76 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006921/1.506, allocations: 2.401 MB / 1.586 GB, free: 43.33 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001184/1.507, allocations: 13 kB / 1.586 GB, free: 43.32 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.694e-05/1.507, allocations: 43.56 kB / 1.586 GB, free: 43.27 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=89): time 3.617e-06/1.507, allocations: 0 / 1.586 GB, free: 43.27 MB / 0.9167 GB Notification: Performance of matching and sorting (n=153): time 0.05944/1.566, allocations: 17.32 MB / 1.603 GB, free: 25.79 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/1.566, allocations: 222.9 kB / 1.603 GB, free: 25.52 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002023/1.568, allocations: 1.024 MB / 1.604 GB, free: 24.49 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0003107/1.569, allocations: 53.7 kB / 1.604 GB, free: 24.43 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005171/1.569, allocations: 0.736 MB / 1.605 GB, free: 23.69 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005975/1.57, allocations: 0.5121 MB / 1.606 GB, free: 23.17 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001911/1.57, allocations: 28 kB / 1.606 GB, free: 23.14 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001124/1.57, allocations: 361.9 kB / 1.606 GB, free: 22.79 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003132/1.573, allocations: 1.542 MB / 1.607 GB, free: 21.24 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003271/1.577, allocations: 1.826 MB / 1.609 GB, free: 19.32 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003424/1.58, allocations: 1.661 MB / 1.611 GB, free: 17.65 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.406e-06/1.58, allocations: 8 kB / 1.611 GB, free: 17.64 MB / 0.9167 GB Notification: Performance of matching and sorting (n=186) (initialization): time 0.01352/1.594, allocations: 5.409 MB / 1.616 GB, free: 12.2 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 3.091e-05/1.594, allocations: 8.75 kB / 1.616 GB, free: 12.19 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/1.594, allocations: 4 kB / 1.616 GB, free: 12.18 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008398/1.602, allocations: 2.137 MB / 1.618 GB, free: 10.02 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001974/1.604, allocations: 419.3 kB / 1.619 GB, free: 9.613 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02914/1.633, allocations: 23.3 MB / 1.641 GB, free: 1.25 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003376/1.637, allocations: 331.5 kB / 1.642 GB, free: 0.9258 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004337/1.637, allocations: 64.16 kB / 1.642 GB, free: 0.8633 MB / 0.9323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (78): * Single equations (assignments): 70 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 17,(3,100.0%) 17,(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 16,(2,100.0%) 16,(2,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001486/1.639, allocations: 461.5 kB / 1.642 GB, free: 412 kB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007754/1.639, allocations: 181.9 kB / 1.642 GB, free: 228 kB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01527/1.655, allocations: 5.476 MB / 1.648 GB, free: 10.7 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-05/1.655, allocations: 12 kB / 1.648 GB, free: 10.69 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-05/1.655, allocations: 20 kB / 1.648 GB, free: 10.67 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.843e-05/1.655, allocations: 7.969 kB / 1.648 GB, free: 10.66 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01959/1.674, allocations: 7.703 MB / 1.655 GB, free: 2.84 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.895e-05/1.674, allocations: 4 kB / 1.655 GB, free: 2.836 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001715/1.676, allocations: 363.7 kB / 1.656 GB, free: 2.48 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009894/1.686, allocations: 1.994 MB / 1.658 GB, free: 476 kB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003674/1.687, allocations: 43.97 kB / 1.658 GB, free: 432 kB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02687/1.713, allocations: 22.48 MB / 1.68 GB, free: 8.879 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/1.713, allocations: 3.938 kB / 1.68 GB, free: 8.875 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01352/1.727, allocations: 5.246 MB / 1.685 GB, free: 3.469 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001529/1.729, allocations: 0.5065 MB / 1.685 GB, free: 2.941 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003757/1.729, allocations: 31.98 kB / 1.685 GB, free: 2.91 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002417/1.731, allocations: 331.5 kB / 1.686 GB, free: 2.586 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005535/1.732, allocations: 145 kB / 1.686 GB, free: 2.441 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001534/1.732, allocations: 59.92 kB / 1.686 GB, free: 2.383 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.001258/1.733, allocations: 0.7899 MB / 1.686 GB, free: 1.594 MB / 0.9792 GB Notification: Performance of sort global known variables: time 2.91e-07/1.733, allocations: 0 / 1.686 GB, free: 1.594 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.002597/1.736, allocations: 0.7226 MB / 1.687 GB, free: 0.8711 MB / 0.9792 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 simulation (46): * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 8,(3,100.0%) 15,(3,100.0%) 17,(2,100.0%) 8,(2,100.0%) 8,(3,100.0%) 15,(3,100.0%) 17,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01413/1.75, allocations: 6.633 MB / 1.694 GB, free: 10.1 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.01202/1.762, allocations: 5.198 MB / 1.699 GB, free: 4.797 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 1.435e-05/1.762, allocations: 8.125 kB / 1.699 GB, free: 4.789 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.007999/1.77, allocations: 3.394 MB / 1.702 GB, free: 1.289 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002719/1.773, allocations: 0.4988 MB / 1.703 GB, free: 0.7969 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04005/1.813, allocations: 20.31 MB / 1.722 GB, free: 11.79 MB / 1.026 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00177/1.815, allocations: 1.608 MB / 1.724 GB, free: 10.14 MB / 1.026 GB Notification: Performance of simCode: alias equations: time 0.002053/1.817, allocations: 398.7 kB / 1.724 GB, free: 9.746 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001007/1.818, allocations: 0.6672 MB / 1.725 GB, free: 9.078 MB / 1.026 GB Notification: Performance of SimCode: time 1.353e-06/1.818, allocations: 0 / 1.725 GB, free: 9.078 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.11/1.928, allocations: 59.17 MB / 1.783 GB, free: 14.6 MB / 1.089 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003193/1.928, allocations: 226.5 kB / 1.783 GB, free: 14.36 MB / 1.089 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.673/5.601, allocations: 6.75 kB / 1.783 GB, free: 14.35 MB / 1.089 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat does not exist to compare? outputFormat=mat