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: translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.374/2.374, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001198/0.001198, allocations: 188.7 kB / 487.4 MB, free: 5.016 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.499/1.499, allocations: 221.5 MB / 0.7824 GB, free: 0.9141 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.0008633/0.0008633, allocations: 91.84 kB / 0.9219 GB, free: 2.148 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.787e-05/1.789e-05, allocations: 1.688 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2712, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9805/1.252, allocations: 169.6 MB / 1.372 GB, free: 18.41 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002703/1.252, allocations: 86.03 kB / 1.372 GB, free: 18.41 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.05384/1.306, allocations: 17.74 MB / 1.389 GB, free: 29.07 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.633e-06/1.306, allocations: 4 kB / 1.389 GB, free: 29.07 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.681e-05/1.306, allocations: 11.78 kB / 1.389 GB, free: 29.06 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.0009702/1.307, allocations: 0.5104 MB / 1.39 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/1.307, allocations: 7.75 kB / 1.39 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001157/1.308, allocations: 97.41 kB / 1.39 GB, free: 28.56 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003445/1.309, allocations: 269.6 kB / 1.39 GB, free: 28.31 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/1.309, allocations: 7.844 kB / 1.39 GB, free: 28.31 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.358e-05/1.309, allocations: 14.92 kB / 1.39 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004432/1.309, allocations: 221.8 kB / 1.39 GB, free: 28.28 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005832/1.31, allocations: 327.7 kB / 1.39 GB, free: 28.12 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/1.31, allocations: 3.844 kB / 1.39 GB, free: 28.12 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.861e-05/1.31, allocations: 0 / 1.39 GB, free: 28.12 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.741e-05/1.31, allocations: 23.78 kB / 1.39 GB, free: 28.11 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001902/1.312, allocations: 1.663 MB / 1.392 GB, free: 26.74 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007282/1.312, allocations: 313.2 kB / 1.392 GB, free: 26.64 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002101/1.313, allocations: 127.9 kB / 1.392 GB, free: 26.61 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001594/1.313, allocations: 88.09 kB / 1.393 GB, free: 26.51 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/1.313, allocations: 37.66 kB / 1.393 GB, free: 26.47 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=20): time 1.623e-06/1.313, allocations: 3.938 kB / 1.393 GB, free: 26.47 MB / 0.8386 GB Notification: Performance of matching and sorting (n=21): time 0.00101/1.314, allocations: 374.3 kB / 1.393 GB, free: 26.32 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/1.314, allocations: 84.86 kB / 1.393 GB, free: 26.22 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002003/1.314, allocations: 169.2 kB / 1.393 GB, free: 26.11 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/1.314, allocations: 25.7 kB / 1.393 GB, free: 26.08 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.787e-05/1.314, allocations: 160 kB / 1.393 GB, free: 25.95 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.077e-05/1.314, allocations: 72.03 kB / 1.393 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.959e-05/1.314, allocations: 0 / 1.393 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001385/1.315, allocations: 325.4 kB / 1.394 GB, free: 25.58 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001989/1.315, allocations: 119 kB / 1.394 GB, free: 25.56 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002335/1.315, allocations: 185.5 kB / 1.394 GB, free: 25.45 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003215/1.315, allocations: 152 kB / 1.394 GB, free: 25.41 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/1.315, allocations: 0 / 1.394 GB, free: 25.41 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008106/1.316, allocations: 387.8 kB / 1.395 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004979/1.317, allocations: 1.045 MB / 1.396 GB, free: 24.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/1.317, allocations: 3.75 kB / 1.396 GB, free: 24.19 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002736/1.317, allocations: 47.16 kB / 1.396 GB, free: 24.17 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004108/1.317, allocations: 73.05 kB / 1.396 GB, free: 24.15 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001457/1.319, allocations: 1.437 MB / 1.397 GB, free: 22.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003028/1.319, allocations: 23.41 kB / 1.397 GB, free: 22.83 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.242e-05/1.319, allocations: 14.84 kB / 1.397 GB, free: 22.83 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.855e-06/1.319, allocations: 3.812 kB / 1.397 GB, free: 22.83 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007405/1.32, allocations: 320.2 kB / 1.397 GB, free: 22.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/1.32, allocations: 3.812 kB / 1.397 GB, free: 22.75 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000141/1.32, allocations: 35.2 kB / 1.397 GB, free: 22.73 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003708/1.321, allocations: 69.52 kB / 1.398 GB, free: 22.71 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001331/1.322, allocations: 1.437 MB / 1.399 GB, free: 21.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002679/1.322, allocations: 19.36 kB / 1.399 GB, free: 21.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.959e-05/1.322, allocations: 15.7 kB / 1.399 GB, free: 21.39 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.0001453/1.322, allocations: 112.7 kB / 1.399 GB, free: 21.27 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/1.323, allocations: 26.69 kB / 1.399 GB, free: 21.26 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007425/1.323, allocations: 311.1 kB / 1.399 GB, free: 21.16 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/1.323, allocations: 11.64 kB / 1.399 GB, free: 21.15 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/1.323, allocations: 3.938 kB / 1.399 GB, free: 21.14 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/1.323, allocations: 0 / 1.399 GB, free: 21.14 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001651/1.325, allocations: 0.8898 MB / 1.4 GB, free: 20.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/1.325, allocations: 0 / 1.4 GB, free: 20.59 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003243/1.325, allocations: 46.44 kB / 1.4 GB, free: 20.59 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000161/1.326, allocations: 38.98 kB / 1.4 GB, free: 20.57 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.633e-05/1.326, allocations: 7.922 kB / 1.4 GB, free: 20.56 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001222/1.327, allocations: 1.355 MB / 1.402 GB, free: 19.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/1.327, allocations: 0 / 1.402 GB, free: 19.3 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000814/1.328, allocations: 0.5902 MB / 1.402 GB, free: 18.85 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/1.328, allocations: 115.3 kB / 1.402 GB, free: 18.74 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.513e-05/1.328, allocations: 3.719 kB / 1.402 GB, free: 18.74 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000362/1.328, allocations: 19.19 kB / 1.402 GB, free: 18.73 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.571e-05/1.328, allocations: 31.02 kB / 1.402 GB, free: 18.72 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.481e-05/1.328, allocations: 14.64 kB / 1.402 GB, free: 18.71 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001554/1.328, allocations: 138.4 kB / 1.403 GB, free: 18.63 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5.41e-07/1.328, allocations: 0 / 1.403 GB, free: 18.63 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001014/1.33, allocations: 103 kB / 1.403 GB, free: 18.62 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.0001948/1.33, allocations: 118 kB / 1.403 GB, free: 18.52 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001131/1.331, allocations: 0.6467 MB / 1.403 GB, free: 18.24 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.331, allocations: 0 / 1.403 GB, free: 18.24 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003752/1.331, allocations: 241.8 kB / 1.404 GB, free: 18.11 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004705/1.332, allocations: 31.36 kB / 1.404 GB, free: 18.09 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008766/1.333, allocations: 409.6 kB / 1.404 GB, free: 17.86 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004062/1.333, allocations: 0.7722 MB / 1.405 GB, free: 17.12 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003868/1.333, allocations: 88.11 kB / 1.405 GB, free: 17.09 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.691e-05/1.334, allocations: 30.64 kB / 1.405 GB, free: 17.08 MB / 0.8386 GB Notification: Performance of SimCode: time 3.1e-07/1.334, allocations: 0 / 1.405 GB, free: 17.08 MB / 0.8386 GB Notification: Performance of Templates: time 0.008372/1.342, allocations: 2.988 MB / 1.408 GB, free: 15.64 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (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 & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches