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.503/2.503, allocations: 387.4 MB / 394.9 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.001756/0.001756, allocations: 180.8 kB / 487.4 MB, free: 5.043 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.644/1.644, allocations: 221.5 MB / 0.7824 GB, free: 0.9922 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 91.95 kB / 0.9219 GB, free: 2.227 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.375e-05/2.378e-05, allocations: 0 / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2551, allocations: 142.4 MB / 1.206 GB, free: 43.88 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.048/1.303, allocations: 169.6 MB / 1.372 GB, free: 18.12 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/1.304, allocations: 85.3 kB / 1.372 GB, free: 18.12 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.05722/1.361, allocations: 17.74 MB / 1.389 GB, free: 28.77 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.495e-06/1.361, allocations: 0 / 1.389 GB, free: 28.77 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.641e-05/1.361, allocations: 3.844 kB / 1.389 GB, free: 28.77 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.001064/1.362, allocations: 0.5222 MB / 1.39 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/1.362, allocations: 7.844 kB / 1.39 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001199/1.363, allocations: 99.22 kB / 1.39 GB, free: 28.27 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000383/1.364, allocations: 265.7 kB / 1.39 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/1.364, allocations: 7.75 kB / 1.39 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.045e-05/1.364, allocations: 11.5 kB / 1.39 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005168/1.364, allocations: 221.9 kB / 1.39 GB, free: 27.99 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006104/1.365, allocations: 332.6 kB / 1.391 GB, free: 27.83 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/1.365, allocations: 0 / 1.391 GB, free: 27.83 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.78e-05/1.365, allocations: 0 / 1.391 GB, free: 27.83 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.196e-05/1.365, allocations: 23.77 kB / 1.391 GB, free: 27.82 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002168/1.367, allocations: 1.666 MB / 1.392 GB, free: 26.45 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007705/1.368, allocations: 308.5 kB / 1.392 GB, free: 26.36 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000227/1.368, allocations: 129.1 kB / 1.393 GB, free: 26.32 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001566/1.369, allocations: 88.81 kB / 1.393 GB, free: 26.23 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/1.369, allocations: 41.47 kB / 1.393 GB, free: 26.18 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=20): time 3.126e-06/1.369, allocations: 7.938 kB / 1.393 GB, free: 26.18 MB / 0.8386 GB Notification: Performance of matching and sorting (n=21): time 0.001027/1.37, allocations: 364.8 kB / 1.393 GB, free: 26.02 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.104e-05/1.37, allocations: 80.98 kB / 1.393 GB, free: 25.93 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000194/1.37, allocations: 170.9 kB / 1.393 GB, free: 25.82 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/1.37, allocations: 25.7 kB / 1.393 GB, free: 25.79 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.27e-05/1.37, allocations: 159 kB / 1.393 GB, free: 25.66 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.69e-05/1.37, allocations: 72.62 kB / 1.394 GB, free: 25.61 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.99e-05/1.37, allocations: 0 / 1.394 GB, free: 25.61 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001263/1.37, allocations: 330 kB / 1.394 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001919/1.371, allocations: 110.2 kB / 1.394 GB, free: 25.27 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002206/1.371, allocations: 194.9 kB / 1.394 GB, free: 25.15 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003142/1.371, allocations: 141.9 kB / 1.394 GB, free: 25.12 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/1.371, allocations: 3.969 kB / 1.394 GB, free: 25.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008076/1.372, allocations: 391.7 kB / 1.395 GB, free: 25 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.000435/1.372, allocations: 1.041 MB / 1.396 GB, free: 23.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/1.372, allocations: 7.625 kB / 1.396 GB, free: 23.9 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002704/1.373, allocations: 50.91 kB / 1.396 GB, free: 23.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004477/1.373, allocations: 72.38 kB / 1.396 GB, free: 23.86 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001629/1.375, allocations: 1.431 MB / 1.397 GB, free: 22.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003679/1.375, allocations: 23.34 kB / 1.397 GB, free: 22.54 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.953e-05/1.375, allocations: 14.72 kB / 1.397 GB, free: 22.54 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.037e-06/1.375, allocations: 5.625 kB / 1.397 GB, free: 22.54 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007798/1.376, allocations: 312.9 kB / 1.398 GB, free: 22.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/1.376, allocations: 3.844 kB / 1.398 GB, free: 22.46 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001686/1.376, allocations: 35.42 kB / 1.398 GB, free: 22.45 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004116/1.377, allocations: 73.64 kB / 1.398 GB, free: 22.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/1.378, allocations: 1.431 MB / 1.399 GB, free: 21.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002976/1.378, allocations: 27.34 kB / 1.399 GB, free: 21.11 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.287e-05/1.378, allocations: 14.72 kB / 1.399 GB, free: 21.11 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.0001509/1.379, allocations: 112.6 kB / 1.399 GB, free: 20.99 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007885/1.379, allocations: 293.5 kB / 1.399 GB, free: 20.89 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/1.38, allocations: 31.11 kB / 1.4 GB, free: 20.88 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007866/1.38, allocations: 320.8 kB / 1.4 GB, free: 20.77 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/1.38, allocations: 3.938 kB / 1.4 GB, free: 20.76 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/1.38, allocations: 7.609 kB / 1.4 GB, free: 20.76 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/1.38, allocations: 0 / 1.4 GB, free: 20.76 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001725/1.382, allocations: 0.8783 MB / 1.401 GB, free: 20.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.698e-06/1.382, allocations: 3.906 kB / 1.401 GB, free: 20.21 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003507/1.382, allocations: 58.3 kB / 1.401 GB, free: 20.2 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000164/1.383, allocations: 31.48 kB / 1.401 GB, free: 20.18 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/1.383, allocations: 7.406 kB / 1.401 GB, free: 20.18 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00134/1.384, allocations: 1.351 MB / 1.402 GB, free: 18.92 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/1.384, allocations: 8.047 kB / 1.402 GB, free: 18.91 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008377/1.385, allocations: 0.583 MB / 1.403 GB, free: 18.46 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/1.385, allocations: 122.5 kB / 1.403 GB, free: 18.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.851e-05/1.385, allocations: 4 kB / 1.403 GB, free: 18.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003842/1.386, allocations: 23.45 kB / 1.403 GB, free: 18.34 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.076e-05/1.386, allocations: 22.67 kB / 1.403 GB, free: 18.33 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-05/1.386, allocations: 7.688 kB / 1.403 GB, free: 18.33 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001616/1.386, allocations: 140.5 kB / 1.403 GB, free: 18.25 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.01e-07/1.386, allocations: 0 / 1.403 GB, free: 18.25 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001052/1.387, allocations: 103.2 kB / 1.403 GB, free: 18.24 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.001589/1.389, allocations: 1.628 MB / 1.405 GB, free: 16.79 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.00125/1.39, allocations: 0.6294 MB / 1.405 GB, free: 16.51 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/1.39, allocations: 5.125 kB / 1.405 GB, free: 16.51 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0004136/1.39, allocations: 249 kB / 1.406 GB, free: 16.38 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004868/1.391, allocations: 33.94 kB / 1.406 GB, free: 16.36 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001445/1.392, allocations: 489.8 kB / 1.406 GB, free: 16.05 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004533/1.393, allocations: 0.7761 MB / 1.407 GB, free: 15.32 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000412/1.393, allocations: 96.17 kB / 1.407 GB, free: 15.28 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001626/1.393, allocations: 67.62 kB / 1.407 GB, free: 15.27 MB / 0.8386 GB Notification: Performance of SimCode: time 6.31e-07/1.393, allocations: 0 / 1.407 GB, free: 15.27 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0247/1.418, allocations: 4.799 MB / 1.412 GB, free: 13.02 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001684/1.418, allocations: 150.7 kB / 1.412 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.745/3.164, allocations: 0 / 1.412 GB, free: 12.83 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