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.278/2.278, allocations: 390.3 MB / 402.8 MB, free: 6.668 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.001532/0.001532, allocations: 172.9 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.596/1.596, allocations: 221.3 MB / 0.7915 GB, free: 5.453 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.0008906/0.0008907, allocations: 99.61 kB / 0.9317 GB, free: 5.766 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.74e-05/3.764e-05, allocations: 0 / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.2961, allocations: 143 MB / 1.219 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8839/1.18, allocations: 171.1 MB / 1.386 GB, free: 492 kB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/1.18, allocations: 89.05 kB / 1.386 GB, free: 440 kB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.04248/1.223, allocations: 17.8 MB / 1.403 GB, free: 1.352 MB / 0.8542 GB Notification: Performance of FrontEnd: time 3.947e-06/1.223, allocations: 4 kB / 1.403 GB, free: 1.348 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 2.118e-05/1.223, allocations: 15.88 kB / 1.403 GB, free: 1.332 MB / 0.8542 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.0008515/1.224, allocations: 0.5147 MB / 1.404 GB, free: 0.7852 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/1.224, allocations: 8.031 kB / 1.404 GB, free: 0.7773 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008066/1.225, allocations: 95.12 kB / 1.404 GB, free: 0.6875 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003648/1.225, allocations: 257 kB / 1.404 GB, free: 424 kB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/1.225, allocations: 15.05 kB / 1.404 GB, free: 416 kB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.658e-05/1.225, allocations: 18.97 kB / 1.404 GB, free: 400 kB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005493/1.226, allocations: 358.9 kB / 1.405 GB, free: 96 kB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/1.226, allocations: 0 / 1.405 GB, free: 96 kB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.703e-05/1.226, allocations: 6.438 kB / 1.405 GB, free: 96 kB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.023e-05/1.226, allocations: 23.12 kB / 1.405 GB, free: 72 kB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004542/1.226, allocations: 302.2 kB / 1.405 GB, free: 15.87 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001767/1.228, allocations: 1.73 MB / 1.407 GB, free: 14.19 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005923/1.229, allocations: 319 kB / 1.407 GB, free: 13.95 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001917/1.229, allocations: 139.6 kB / 1.407 GB, free: 13.84 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001436/1.229, allocations: 93.08 kB / 1.407 GB, free: 13.73 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/1.229, allocations: 37.94 kB / 1.407 GB, free: 13.69 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=20): time 1.694e-06/1.229, allocations: 0 / 1.407 GB, free: 13.69 MB / 0.8698 GB Notification: Performance of matching and sorting (n=21): time 0.0008268/1.23, allocations: 371.2 kB / 1.407 GB, free: 13.39 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/1.23, allocations: 85.05 kB / 1.408 GB, free: 13.29 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001691/1.23, allocations: 178.6 kB / 1.408 GB, free: 13.14 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/1.23, allocations: 25.7 kB / 1.408 GB, free: 13.11 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.707e-05/1.23, allocations: 167.9 kB / 1.408 GB, free: 12.96 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 6.268e-05/1.23, allocations: 72.98 kB / 1.408 GB, free: 12.89 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.493e-05/1.23, allocations: 7.875 kB / 1.408 GB, free: 12.89 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001114/1.23, allocations: 330.1 kB / 1.408 GB, free: 12.57 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/1.231, allocations: 111.9 kB / 1.408 GB, free: 12.5 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002071/1.231, allocations: 198.2 kB / 1.409 GB, free: 12.31 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002092/1.231, allocations: 145.7 kB / 1.409 GB, free: 12.21 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/1.231, allocations: 0 / 1.409 GB, free: 12.21 MB / 0.8698 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005899/1.232, allocations: 391.1 kB / 1.409 GB, free: 11.92 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003916/1.232, allocations: 1.053 MB / 1.41 GB, free: 10.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/1.232, allocations: 7.938 kB / 1.41 GB, free: 10.79 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002042/1.232, allocations: 39.64 kB / 1.41 GB, free: 10.76 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003048/1.233, allocations: 75.88 kB / 1.41 GB, free: 10.68 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001307/1.234, allocations: 1.496 MB / 1.412 GB, free: 9.141 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002214/1.234, allocations: 31.28 kB / 1.412 GB, free: 9.113 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/1.234, allocations: 15.62 kB / 1.412 GB, free: 9.102 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/1.234, allocations: 4 kB / 1.412 GB, free: 9.098 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005156/1.235, allocations: 334.9 kB / 1.412 GB, free: 8.855 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/1.235, allocations: 4 kB / 1.412 GB, free: 8.852 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001188/1.235, allocations: 43.88 kB / 1.412 GB, free: 8.812 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002571/1.235, allocations: 67.45 kB / 1.412 GB, free: 8.75 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001095/1.236, allocations: 1.488 MB / 1.414 GB, free: 7.223 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001902/1.236, allocations: 35.27 kB / 1.414 GB, free: 7.191 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.036e-05/1.236, allocations: 11.44 kB / 1.414 GB, free: 7.184 MB / 0.8698 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.0001062/1.237, allocations: 123.8 kB / 1.414 GB, free: 7.062 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.465e-05/1.237, allocations: 19.81 kB / 1.414 GB, free: 7.043 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005411/1.237, allocations: 327.8 kB / 1.414 GB, free: 6.801 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/1.237, allocations: 4 kB / 1.414 GB, free: 6.797 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/1.237, allocations: 0 / 1.414 GB, free: 6.797 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.343e-06/1.237, allocations: 3.953 kB / 1.414 GB, free: 6.793 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001243/1.238, allocations: 0.941 MB / 1.415 GB, free: 5.934 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/1.238, allocations: 0 / 1.415 GB, free: 5.934 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002431/1.239, allocations: 60.11 kB / 1.415 GB, free: 5.875 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001106/1.239, allocations: 35.89 kB / 1.415 GB, free: 5.844 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.802e-05/1.239, allocations: 4 kB / 1.415 GB, free: 5.84 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/1.24, allocations: 1.407 MB / 1.417 GB, free: 4.383 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/1.24, allocations: 4.031 kB / 1.417 GB, free: 4.379 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005797/1.24, allocations: 0.5936 MB / 1.417 GB, free: 3.789 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/1.241, allocations: 123.9 kB / 1.417 GB, free: 3.656 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.896e-05/1.241, allocations: 11.2 kB / 1.417 GB, free: 3.648 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002263/1.241, allocations: 31.72 kB / 1.417 GB, free: 3.621 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.33e-05/1.241, allocations: 19.23 kB / 1.417 GB, free: 3.605 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/1.241, allocations: 8 kB / 1.417 GB, free: 3.598 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0001277/1.241, allocations: 156.2 kB / 1.417 GB, free: 3.465 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2.3e-07/1.241, allocations: 0 / 1.417 GB, free: 3.465 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0006167/1.242, allocations: 126.7 kB / 1.418 GB, free: 3.355 MB / 0.8698 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.0001796/1.242, allocations: 118.5 kB / 1.418 GB, free: 3.23 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001015/1.243, allocations: 0.682 MB / 1.418 GB, free: 2.664 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/1.243, allocations: 0 / 1.418 GB, free: 2.664 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003226/1.243, allocations: 255 kB / 1.419 GB, free: 2.441 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003025/1.244, allocations: 38.67 kB / 1.419 GB, free: 2.414 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007276/1.244, allocations: 424 kB / 1.419 GB, free: 2.02 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003612/1.245, allocations: 0.7784 MB / 1.42 GB, free: 1.223 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0002807/1.245, allocations: 93.92 kB / 1.42 GB, free: 1.129 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.056e-05/1.245, allocations: 26.56 kB / 1.42 GB, free: 1.105 MB / 0.8698 GB Notification: Performance of SimCode: time 5.01e-07/1.245, allocations: 0 / 1.42 GB, free: 1.105 MB / 0.8698 GB Notification: Performance of Templates: time 0.006734/1.252, allocations: 3.165 MB / 1.423 GB, free: 13.96 MB / 0.8855 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