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: translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_latest_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_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.342/2.342, allocations: 390.5 MB / 398 MB, free: 10.96 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.001886/0.001886, allocations: 178.4 kB / 491.2 MB, free: 1.602 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.689/1.689, allocations: 221.5 MB / 0.7868 GB, free: 13.34 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.00105/0.00105, allocations: 97.39 kB / 0.9269 GB, free: 13.84 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.333e-05/1.331e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2767, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.056/1.333, allocations: 170.4 MB / 1.379 GB, free: 17.54 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003053/1.333, allocations: 84.5 kB / 1.379 GB, free: 17.54 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.05943/1.393, allocations: 17.74 MB / 1.396 GB, free: 27.32 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.904e-06/1.393, allocations: 0 / 1.396 GB, free: 27.32 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.26e-05/1.393, allocations: 11.81 kB / 1.396 GB, free: 27.32 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.001102/1.394, allocations: 0.5169 MB / 1.397 GB, free: 26.85 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/1.394, allocations: 7.688 kB / 1.397 GB, free: 26.85 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001294/1.395, allocations: 97.73 kB / 1.397 GB, free: 26.81 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004437/1.396, allocations: 261.7 kB / 1.397 GB, free: 26.57 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/1.396, allocations: 7.656 kB / 1.397 GB, free: 26.57 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.192e-05/1.396, allocations: 11.78 kB / 1.397 GB, free: 26.57 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005546/1.396, allocations: 222 kB / 1.397 GB, free: 26.55 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006332/1.397, allocations: 334.6 kB / 1.398 GB, free: 26.38 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.085e-05/1.397, allocations: 0 / 1.398 GB, free: 26.38 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.995e-05/1.397, allocations: 0 / 1.398 GB, free: 26.38 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.467e-05/1.397, allocations: 19.69 kB / 1.398 GB, free: 26.38 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002275/1.399, allocations: 1.675 MB / 1.399 GB, free: 25 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007604/1.4, allocations: 308.3 kB / 1.4 GB, free: 24.9 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002271/1.4, allocations: 132.5 kB / 1.4 GB, free: 24.87 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001828/1.401, allocations: 83.69 kB / 1.4 GB, free: 24.77 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/1.401, allocations: 49.66 kB / 1.4 GB, free: 24.72 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=20): time 1.974e-06/1.401, allocations: 0 / 1.4 GB, free: 24.72 MB / 0.8386 GB Notification: Performance of matching and sorting (n=21): time 0.001047/1.402, allocations: 363.9 kB / 1.4 GB, free: 24.57 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.266e-05/1.402, allocations: 81.08 kB / 1.4 GB, free: 24.48 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002191/1.402, allocations: 165.9 kB / 1.4 GB, free: 24.38 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.853e-05/1.402, allocations: 25.7 kB / 1.4 GB, free: 24.34 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/1.402, allocations: 167.5 kB / 1.401 GB, free: 24.21 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.143e-05/1.402, allocations: 65.67 kB / 1.401 GB, free: 24.16 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.114e-05/1.402, allocations: 0 / 1.401 GB, free: 24.16 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001689/1.402, allocations: 337.4 kB / 1.401 GB, free: 23.84 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002163/1.403, allocations: 101.9 kB / 1.401 GB, free: 23.83 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002447/1.403, allocations: 195.3 kB / 1.401 GB, free: 23.71 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003288/1.403, allocations: 146.1 kB / 1.401 GB, free: 23.68 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/1.403, allocations: 0 / 1.401 GB, free: 23.68 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008318/1.404, allocations: 385.6 kB / 1.402 GB, free: 23.56 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005512/1.405, allocations: 1.051 MB / 1.403 GB, free: 22.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/1.405, allocations: 3.812 kB / 1.403 GB, free: 22.46 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002732/1.405, allocations: 43.11 kB / 1.403 GB, free: 22.44 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004215/1.405, allocations: 72.5 kB / 1.403 GB, free: 22.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001467/1.407, allocations: 1.439 MB / 1.404 GB, free: 20.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000329/1.407, allocations: 23.88 kB / 1.404 GB, free: 20.9 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.625e-05/1.407, allocations: 15.95 kB / 1.404 GB, free: 20.88 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/1.407, allocations: 5.406 kB / 1.404 GB, free: 20.88 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007265/1.408, allocations: 307.5 kB / 1.405 GB, free: 20.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/1.408, allocations: 4 kB / 1.405 GB, free: 20.65 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001597/1.408, allocations: 46.88 kB / 1.405 GB, free: 20.61 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000415/1.409, allocations: 68.23 kB / 1.405 GB, free: 20.54 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001293/1.41, allocations: 1.432 MB / 1.406 GB, free: 19.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002783/1.41, allocations: 31.97 kB / 1.406 GB, free: 19.05 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.918e-05/1.41, allocations: 11.06 kB / 1.406 GB, free: 19.04 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.0001336/1.411, allocations: 112.9 kB / 1.406 GB, free: 18.93 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/1.411, allocations: 19.72 kB / 1.406 GB, free: 18.91 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007462/1.411, allocations: 320.6 kB / 1.407 GB, free: 18.67 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/1.411, allocations: 8.062 kB / 1.407 GB, free: 18.66 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/1.411, allocations: 7.938 kB / 1.407 GB, free: 18.65 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/1.411, allocations: 0 / 1.407 GB, free: 18.65 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001623/1.413, allocations: 0.8758 MB / 1.407 GB, free: 17.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/1.413, allocations: 4 kB / 1.407 GB, free: 17.85 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003224/1.413, allocations: 51.89 kB / 1.407 GB, free: 17.8 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000147/1.414, allocations: 43.88 kB / 1.408 GB, free: 17.76 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.676e-05/1.414, allocations: 7.953 kB / 1.408 GB, free: 17.75 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/1.415, allocations: 1.345 MB / 1.409 GB, free: 16.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/1.415, allocations: 0 / 1.409 GB, free: 16.37 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007955/1.416, allocations: 0.5853 MB / 1.409 GB, free: 15.78 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/1.416, allocations: 123.4 kB / 1.41 GB, free: 15.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.08e-05/1.416, allocations: 7.984 kB / 1.41 GB, free: 15.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003702/1.416, allocations: 19.97 kB / 1.41 GB, free: 15.62 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.243e-05/1.416, allocations: 27.12 kB / 1.41 GB, free: 15.6 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.487e-05/1.416, allocations: 11.5 kB / 1.41 GB, free: 15.59 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001505/1.417, allocations: 140.6 kB / 1.41 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5.61e-07/1.417, allocations: 0 / 1.41 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0009863/1.418, allocations: 103.9 kB / 1.41 GB, free: 15.38 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.0002083/1.418, allocations: 123.1 kB / 1.41 GB, free: 15.24 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001153/1.419, allocations: 0.6329 MB / 1.411 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/1.419, allocations: 0 / 1.411 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003992/1.419, allocations: 245.6 kB / 1.411 GB, free: 14.52 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004689/1.42, allocations: 33.62 kB / 1.411 GB, free: 14.49 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009709/1.421, allocations: 413 kB / 1.411 GB, free: 14.1 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004596/1.421, allocations: 0.779 MB / 1.412 GB, free: 13.3 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0004327/1.422, allocations: 94.11 kB / 1.412 GB, free: 13.21 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/1.422, allocations: 19.44 kB / 1.412 GB, free: 13.2 MB / 0.8386 GB Notification: Performance of SimCode: time 4.11e-07/1.422, allocations: 0 / 1.412 GB, free: 13.2 MB / 0.8386 GB Notification: Performance of Templates: time 0.00811/1.43, allocations: 2.997 MB / 1.415 GB, free: 10.22 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (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 & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches