Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.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.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",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.412/2.412, allocations: 387.1 MB / 399.7 MB, free: 9.488 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.001099/0.001099, allocations: 172.9 kB / 492.3 MB, free: 0.5977 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.557/1.557, allocations: 221.3 MB / 0.7872 GB, free: 12.83 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.0008531/0.000853, allocations: 99.83 kB / 0.9267 GB, free: 13.91 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.325e-05/3.336e-05, allocations: 5.719 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.269, allocations: 142.3 MB / 1.212 GB, free: 38.39 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.011/1.28, allocations: 170.3 MB / 1.379 GB, free: 18.87 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/1.28, allocations: 84.62 kB / 1.379 GB, free: 18.86 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03905/1.32, allocations: 17.8 MB / 1.396 GB, free: 28.34 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.703e-06/1.32, allocations: 0 / 1.396 GB, free: 28.34 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.584e-05/1.32, allocations: 7.625 kB / 1.396 GB, free: 28.34 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008312/1.32, allocations: 0.5255 MB / 1.397 GB, free: 27.86 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/1.321, allocations: 7.812 kB / 1.397 GB, free: 27.86 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.574e-05/1.321, allocations: 52.89 kB / 1.397 GB, free: 27.82 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008838/1.322, allocations: 100.9 kB / 1.397 GB, free: 27.78 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003625/1.322, allocations: 260.6 kB / 1.397 GB, free: 27.54 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/1.322, allocations: 14.81 kB / 1.397 GB, free: 27.54 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.402e-05/1.322, allocations: 18.66 kB / 1.397 GB, free: 27.54 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004916/1.322, allocations: 352.8 kB / 1.398 GB, free: 27.38 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/1.322, allocations: 0 / 1.398 GB, free: 27.38 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.042e-05/1.323, allocations: 18.22 kB / 1.398 GB, free: 27.37 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.794e-05/1.323, allocations: 19.75 kB / 1.398 GB, free: 27.36 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004096/1.323, allocations: 302.1 kB / 1.398 GB, free: 27.24 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001599/1.325, allocations: 1.714 MB / 1.4 GB, free: 25.59 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005686/1.325, allocations: 320.1 kB / 1.4 GB, free: 25.34 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001833/1.325, allocations: 137.3 kB / 1.4 GB, free: 25.24 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001511/1.326, allocations: 96.98 kB / 1.4 GB, free: 25.13 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/1.326, allocations: 37.69 kB / 1.4 GB, free: 25.09 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=20): time 1.553e-06/1.326, allocations: 0 / 1.4 GB, free: 25.09 MB / 0.8386 GB Notification: Performance of matching and sorting (n=21): time 0.0007984/1.326, allocations: 378.2 kB / 1.4 GB, free: 24.78 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/1.326, allocations: 85.2 kB / 1.401 GB, free: 24.68 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001723/1.327, allocations: 177.4 kB / 1.401 GB, free: 24.52 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/1.327, allocations: 28.95 kB / 1.401 GB, free: 24.49 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.726e-05/1.327, allocations: 164.5 kB / 1.401 GB, free: 24.34 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.449e-05/1.327, allocations: 69.27 kB / 1.401 GB, free: 24.29 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.559e-05/1.327, allocations: 7.5 kB / 1.401 GB, free: 24.28 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.44e-05/1.327, allocations: 329.8 kB / 1.401 GB, free: 23.96 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/1.327, allocations: 108.9 kB / 1.401 GB, free: 23.89 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001841/1.327, allocations: 195.2 kB / 1.402 GB, free: 23.7 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001991/1.327, allocations: 151.6 kB / 1.402 GB, free: 23.6 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/1.327, allocations: 0 / 1.402 GB, free: 23.6 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005638/1.328, allocations: 398.2 kB / 1.402 GB, free: 23.3 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002986/1.328, allocations: 1.052 MB / 1.403 GB, free: 22.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/1.328, allocations: 4 kB / 1.403 GB, free: 22.18 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000211/1.329, allocations: 44.38 kB / 1.403 GB, free: 22.14 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000296/1.329, allocations: 71.45 kB / 1.403 GB, free: 22.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001225/1.33, allocations: 1.497 MB / 1.405 GB, free: 20.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003046/1.33, allocations: 27.66 kB / 1.405 GB, free: 20.51 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.137e-05/1.33, allocations: 8 kB / 1.405 GB, free: 20.5 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/1.33, allocations: 4 kB / 1.405 GB, free: 20.5 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000528/1.331, allocations: 336.1 kB / 1.405 GB, free: 20.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/1.331, allocations: 4 kB / 1.405 GB, free: 20.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001243/1.331, allocations: 43.06 kB / 1.405 GB, free: 20.21 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/1.331, allocations: 66.95 kB / 1.405 GB, free: 20.15 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001069/1.333, allocations: 1.485 MB / 1.407 GB, free: 18.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001984/1.333, allocations: 35.61 kB / 1.407 GB, free: 18.6 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/1.333, allocations: 19.45 kB / 1.407 GB, free: 18.58 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001141/1.333, allocations: 120.7 kB / 1.407 GB, free: 18.46 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.808e-05/1.333, allocations: 27.7 kB / 1.407 GB, free: 18.44 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005202/1.333, allocations: 323.2 kB / 1.407 GB, free: 18.2 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/1.333, allocations: 8 kB / 1.407 GB, free: 18.2 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/1.334, allocations: 0 / 1.407 GB, free: 18.2 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/1.334, allocations: 7.984 kB / 1.407 GB, free: 18.19 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001228/1.335, allocations: 0.942 MB / 1.408 GB, free: 17.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/1.335, allocations: 0 / 1.408 GB, free: 17.34 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000221/1.335, allocations: 55.89 kB / 1.408 GB, free: 17.28 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001134/1.335, allocations: 36.27 kB / 1.408 GB, free: 17.25 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.189e-05/1.335, allocations: 7.875 kB / 1.408 GB, free: 17.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000951/1.336, allocations: 1.406 MB / 1.41 GB, free: 15.79 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/1.336, allocations: 0 / 1.41 GB, free: 15.79 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005319/1.337, allocations: 0.589 MB / 1.41 GB, free: 15.2 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/1.337, allocations: 127.7 kB / 1.41 GB, free: 15.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.91e-05/1.337, allocations: 3.375 kB / 1.41 GB, free: 15.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002274/1.337, allocations: 31.42 kB / 1.41 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.563e-05/1.337, allocations: 27.41 kB / 1.41 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.521e-05/1.337, allocations: 8 kB / 1.41 GB, free: 15.01 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001281/1.337, allocations: 155.6 kB / 1.41 GB, free: 14.88 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.9e-07/1.337, allocations: 4 kB / 1.41 GB, free: 14.88 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005886/1.338, allocations: 117.9 kB / 1.411 GB, free: 14.77 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001094/1.339, allocations: 1.624 MB / 1.412 GB, free: 13.16 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0009587/1.34, allocations: 0.6863 MB / 1.413 GB, free: 12.58 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/1.34, allocations: 2.688 kB / 1.413 GB, free: 12.58 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002965/1.34, allocations: 254.8 kB / 1.413 GB, free: 12.36 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002989/1.341, allocations: 42.31 kB / 1.413 GB, free: 12.33 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009117/1.342, allocations: 0.4956 MB / 1.414 GB, free: 11.85 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003266/1.342, allocations: 0.7702 MB / 1.414 GB, free: 11.05 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002498/1.342, allocations: 93.97 kB / 1.414 GB, free: 10.96 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/1.342, allocations: 68.28 kB / 1.414 GB, free: 10.94 MB / 0.8386 GB Notification: Performance of SimCode: time 3.21e-07/1.342, allocations: 0 / 1.414 GB, free: 10.94 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01942/1.362, allocations: 5.352 MB / 1.42 GB, free: 5.754 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002067/1.362, allocations: 196.9 kB / 1.42 GB, free: 5.516 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.795/3.157, allocations: 0 / 1.42 GB, free: 5.516 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat does not exist to compare? outputFormat=mat