Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.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.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.614/2.614, allocations: 390.5 MB / 398 MB, free: 10.99 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.001423/0.001423, allocations: 184.6 kB / 491.2 MB, free: 1.578 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.54/1.54, allocations: 221.5 MB / 0.7868 GB, free: 13.26 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.0008851/0.0008851, allocations: 98.81 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.179e-05/2.168e-05, allocations: 0 / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2639, allocations: 143 MB / 1.212 GB, free: 39.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8255/1.089, allocations: 170.4 MB / 1.379 GB, free: 17.25 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003264/1.09, allocations: 86.28 kB / 1.379 GB, free: 17.25 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04087/1.131, allocations: 17.74 MB / 1.396 GB, free: 27.04 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.254e-06/1.131, allocations: 0 / 1.396 GB, free: 27.04 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.03e-05/1.131, allocations: 7.656 kB / 1.396 GB, free: 27.03 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.0008116/1.132, allocations: 0.5232 MB / 1.397 GB, free: 26.56 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/1.132, allocations: 11.38 kB / 1.397 GB, free: 26.56 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008647/1.133, allocations: 93.03 kB / 1.397 GB, free: 26.52 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003108/1.133, allocations: 259.8 kB / 1.397 GB, free: 26.28 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/1.133, allocations: 3.812 kB / 1.397 GB, free: 26.28 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.104e-05/1.133, allocations: 11.56 kB / 1.397 GB, free: 26.28 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003328/1.133, allocations: 222.4 kB / 1.397 GB, free: 26.26 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004706/1.134, allocations: 328.8 kB / 1.398 GB, free: 26.1 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/1.134, allocations: 0 / 1.398 GB, free: 26.1 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.027e-05/1.134, allocations: 7.922 kB / 1.398 GB, free: 26.09 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.974e-05/1.134, allocations: 23.06 kB / 1.398 GB, free: 26.09 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001497/1.135, allocations: 1.67 MB / 1.399 GB, free: 24.71 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005184/1.136, allocations: 305.2 kB / 1.4 GB, free: 24.62 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001503/1.136, allocations: 132.8 kB / 1.4 GB, free: 24.59 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001414/1.136, allocations: 88.88 kB / 1.4 GB, free: 24.49 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.746e-05/1.136, allocations: 41.7 kB / 1.4 GB, free: 24.44 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=20): time 1.333e-06/1.136, allocations: 0 / 1.4 GB, free: 24.44 MB / 0.8386 GB Notification: Performance of matching and sorting (n=21): time 0.0007711/1.137, allocations: 367.1 kB / 1.4 GB, free: 24.29 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.02e-05/1.137, allocations: 80.55 kB / 1.4 GB, free: 24.2 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001523/1.137, allocations: 175.5 kB / 1.4 GB, free: 24.09 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.199e-05/1.137, allocations: 25.7 kB / 1.4 GB, free: 24.06 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.409e-05/1.137, allocations: 159 kB / 1.401 GB, free: 23.93 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.628e-05/1.137, allocations: 70.44 kB / 1.401 GB, free: 23.88 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.572e-05/1.137, allocations: 0 / 1.401 GB, free: 23.88 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.745e-05/1.138, allocations: 330.1 kB / 1.401 GB, free: 23.55 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001522/1.138, allocations: 108.2 kB / 1.401 GB, free: 23.54 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/1.138, allocations: 187.1 kB / 1.401 GB, free: 23.43 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002362/1.138, allocations: 154.3 kB / 1.401 GB, free: 23.39 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/1.138, allocations: 3.844 kB / 1.401 GB, free: 23.39 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005606/1.139, allocations: 383.4 kB / 1.402 GB, free: 23.27 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003901/1.139, allocations: 1.044 MB / 1.403 GB, free: 22.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/1.139, allocations: 8 kB / 1.403 GB, free: 22.16 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002224/1.139, allocations: 47.12 kB / 1.403 GB, free: 22.11 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003047/1.14, allocations: 71.77 kB / 1.403 GB, free: 22.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/1.141, allocations: 1.435 MB / 1.404 GB, free: 20.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002315/1.141, allocations: 27.91 kB / 1.404 GB, free: 20.56 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.823e-05/1.141, allocations: 18.2 kB / 1.404 GB, free: 20.54 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.567e-06/1.141, allocations: 4 kB / 1.404 GB, free: 20.54 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005262/1.142, allocations: 311.2 kB / 1.405 GB, free: 20.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/1.142, allocations: 7.938 kB / 1.405 GB, free: 20.3 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001144/1.142, allocations: 39.14 kB / 1.405 GB, free: 20.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002553/1.142, allocations: 71.8 kB / 1.405 GB, free: 20.2 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001046/1.143, allocations: 1.421 MB / 1.406 GB, free: 18.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002063/1.143, allocations: 23.98 kB / 1.406 GB, free: 18.73 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.6e-05/1.143, allocations: 19.05 kB / 1.406 GB, free: 18.71 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.000151/1.144, allocations: 112.8 kB / 1.406 GB, free: 18.59 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005531/1.144, allocations: 297.1 kB / 1.407 GB, free: 18.36 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.105e-05/1.144, allocations: 27.75 kB / 1.407 GB, free: 18.33 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005391/1.145, allocations: 321.1 kB / 1.407 GB, free: 18.09 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/1.145, allocations: 7.953 kB / 1.407 GB, free: 18.09 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/1.145, allocations: 4 kB / 1.407 GB, free: 18.08 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/1.145, allocations: 0 / 1.407 GB, free: 18.08 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001207/1.146, allocations: 0.882 MB / 1.408 GB, free: 17.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/1.146, allocations: 4 kB / 1.408 GB, free: 17.28 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002254/1.146, allocations: 51.89 kB / 1.408 GB, free: 17.23 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000118/1.146, allocations: 39.55 kB / 1.408 GB, free: 17.19 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.968e-05/1.146, allocations: 4 kB / 1.408 GB, free: 17.19 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009948/1.147, allocations: 1.341 MB / 1.409 GB, free: 15.81 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/1.147, allocations: 4.031 kB / 1.409 GB, free: 15.8 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005882/1.148, allocations: 0.5856 MB / 1.41 GB, free: 15.21 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/1.148, allocations: 123.8 kB / 1.41 GB, free: 15.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.408e-05/1.148, allocations: 7.938 kB / 1.41 GB, free: 15.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000234/1.148, allocations: 19.98 kB / 1.41 GB, free: 15.06 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.031e-05/1.148, allocations: 23.28 kB / 1.41 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/1.148, allocations: 4 kB / 1.41 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001159/1.149, allocations: 149.1 kB / 1.41 GB, free: 14.91 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.149, allocations: 0 / 1.41 GB, free: 14.91 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006532/1.149, allocations: 107.5 kB / 1.41 GB, free: 14.81 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.001106/1.15, allocations: 1.616 MB / 1.412 GB, free: 13.19 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0008791/1.151, allocations: 0.6376 MB / 1.412 GB, free: 12.67 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/1.151, allocations: 1.375 kB / 1.412 GB, free: 12.67 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002726/1.152, allocations: 239.1 kB / 1.413 GB, free: 12.46 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/1.152, allocations: 50.88 kB / 1.413 GB, free: 12.42 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009398/1.153, allocations: 483.1 kB / 1.413 GB, free: 11.95 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/1.153, allocations: 0.7784 MB / 1.414 GB, free: 11.16 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002637/1.153, allocations: 98.11 kB / 1.414 GB, free: 11.06 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001768/1.154, allocations: 67.22 kB / 1.414 GB, free: 11.04 MB / 0.8386 GB Notification: Performance of SimCode: time 9.12e-07/1.154, allocations: 0 / 1.414 GB, free: 11.04 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02588/1.18, allocations: 4.805 MB / 1.419 GB, free: 6.254 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002393/1.18, allocations: 152.2 kB / 1.419 GB, free: 6.062 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.788/2.968, allocations: 2.391 kB / 1.419 GB, free: 6.062 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat does not exist to compare? outputFormat=mat