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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001475/0.001476, allocations: 107.7 kB / 16.41 MB, free: 6.488 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001669/0.001669, allocations: 189.6 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.381/2.381, allocations: 390.2 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 60.14 kB / 0.9515 GB, free: 7.691 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9904/0.9919, allocations: 140.4 MB / 1.089 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004564/0.9965, allocations: 2.887 MB / 1.091 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00286/0.9994, allocations: 1.816 MB / 1.093 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001607/0.9996, allocations: 3.875 kB / 1.093 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0007015/1, allocations: 234.3 kB / 1.093 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005636/1.001, allocations: 201.2 kB / 1.094 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006394/1.002, allocations: 234.8 kB / 1.094 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004562/1.002, allocations: 310.1 kB / 1.094 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003269/1.002, allocations: 175.6 kB / 1.094 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002142/1.003, allocations: 126.3 kB / 1.094 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002824/1.003, allocations: 151.7 kB / 1.095 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.132e-05/1.003, allocations: 20.81 kB / 1.095 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005792/1.003, allocations: 278 kB / 1.095 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001144/1.004, allocations: 81.03 kB / 1.095 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001278/1.004, allocations: 119.9 kB / 1.095 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000682/1.004, allocations: 436.8 kB / 1.095 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/1.004, allocations: 0.6562 kB / 1.095 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of FrontEnd: time 7.42e-07/1.004, allocations: 4 kB / 1.095 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.3e-06/1.004, allocations: 0.875 kB / 1.095 GB, free: 1.316 MB / 0.8575 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.0007362/1.005, allocations: 0.5416 MB / 1.096 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 2.669e-05/1.005, allocations: 10.22 kB / 1.096 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000915/1.006, allocations: 108.5 kB / 1.096 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002642/1.006, allocations: 276.4 kB / 1.096 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/1.006, allocations: 12.62 kB / 1.096 GB, free: 0.5664 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.841e-05/1.007, allocations: 16.25 kB / 1.096 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006887/1.007, allocations: 395.6 kB / 1.097 GB, free: 352 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/1.007, allocations: 1.5 kB / 1.097 GB, free: 352 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.763e-05/1.007, allocations: 6.438 kB / 1.097 GB, free: 348 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.794e-05/1.007, allocations: 29.84 kB / 1.097 GB, free: 336 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007599/1.008, allocations: 344.5 kB / 1.097 GB, free: 224 kB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001972/1.01, allocations: 1.724 MB / 1.099 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007548/1.011, allocations: 340.5 kB / 1.099 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000291/1.011, allocations: 149.3 kB / 1.099 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001211/1.011, allocations: 91.53 kB / 1.099 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.206e-05/1.011, allocations: 44.38 kB / 1.099 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=20): time 2.324e-06/1.011, allocations: 0 / 1.099 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of matching and sorting (n=21): time 0.001488/1.013, allocations: 0.5866 MB / 1.1 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/1.013, allocations: 83.23 kB / 1.1 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002867/1.013, allocations: 210 kB / 1.1 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.993e-05/1.013, allocations: 31.64 kB / 1.1 GB, free: 13.85 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/1.013, allocations: 160.8 kB / 1.1 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.377e-05/1.013, allocations: 74.67 kB / 1.101 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001196/1.014, allocations: 60.95 kB / 1.101 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001292/1.014, allocations: 328.5 kB / 1.101 GB, free: 13.3 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003274/1.014, allocations: 146.3 kB / 1.101 GB, free: 13.24 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003786/1.014, allocations: 218 kB / 1.101 GB, free: 13.1 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006676/1.015, allocations: 375.8 kB / 1.102 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/1.015, allocations: 0.9375 kB / 1.102 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000979/1.016, allocations: 438.5 kB / 1.102 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/1.016, allocations: 10.52 kB / 1.102 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/1.016, allocations: 3.594 kB / 1.102 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002365/1.016, allocations: 43.31 kB / 1.102 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003603/1.017, allocations: 71.45 kB / 1.102 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001599/1.018, allocations: 1.613 MB / 1.104 GB, free: 11.16 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003296/1.019, allocations: 38.45 kB / 1.104 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.213e-05/1.019, allocations: 18.34 kB / 1.104 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004071/1.019, allocations: 243.3 kB / 1.104 GB, free: 11 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003709/1.02, allocations: 206.5 kB / 1.104 GB, free: 10.86 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007458/1.02, allocations: 355 kB / 1.105 GB, free: 10.64 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.366e-06/1.02, allocations: 1.062 kB / 1.105 GB, free: 10.64 MB / 0.8731 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0009579/1.021, allocations: 425.5 kB / 1.105 GB, free: 10.46 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/1.021, allocations: 9.469 kB / 1.105 GB, free: 10.46 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/1.021, allocations: 3 kB / 1.105 GB, free: 10.46 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001454/1.021, allocations: 44.47 kB / 1.105 GB, free: 10.45 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003173/1.022, allocations: 72.27 kB / 1.105 GB, free: 10.44 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001442/1.023, allocations: 1.613 MB / 1.107 GB, free: 8.918 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003231/1.024, allocations: 39.08 kB / 1.107 GB, free: 8.902 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.72e-05/1.024, allocations: 10.66 kB / 1.107 GB, free: 8.902 MB / 0.8731 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001702/1.024, allocations: 194.4 kB / 1.107 GB, free: 8.711 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.373e-05/1.024, allocations: 21.69 kB / 1.107 GB, free: 8.699 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007766/1.025, allocations: 361 kB / 1.107 GB, free: 8.547 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/1.025, allocations: 5.844 kB / 1.107 GB, free: 8.543 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/1.025, allocations: 1.5 kB / 1.107 GB, free: 8.543 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/1.025, allocations: 1.219 kB / 1.107 GB, free: 8.543 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001604/1.026, allocations: 0.9655 MB / 1.108 GB, free: 7.914 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/1.026, allocations: 2.469 kB / 1.108 GB, free: 7.914 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002465/1.027, allocations: 53.5 kB / 1.108 GB, free: 7.906 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001353/1.027, allocations: 36.69 kB / 1.108 GB, free: 7.895 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.575e-05/1.027, allocations: 11.12 kB / 1.108 GB, free: 7.887 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/1.028, allocations: 1.512 MB / 1.11 GB, free: 6.426 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/1.028, allocations: 2.781 kB / 1.11 GB, free: 6.426 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008094/1.029, allocations: 0.5321 MB / 1.11 GB, free: 6.062 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000145/1.029, allocations: 128.8 kB / 1.11 GB, free: 5.941 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.104e-05/1.029, allocations: 12.7 kB / 1.11 GB, free: 5.934 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002696/1.029, allocations: 24.84 kB / 1.11 GB, free: 5.93 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.504e-05/1.029, allocations: 27.59 kB / 1.11 GB, free: 5.918 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-05/1.029, allocations: 10.61 kB / 1.11 GB, free: 5.914 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002222/1.03, allocations: 159 kB / 1.111 GB, free: 5.816 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.3e-07/1.03, allocations: 0 / 1.111 GB, free: 5.816 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0007359/1.03, allocations: 112.6 kB / 1.111 GB, free: 5.801 MB / 0.8731 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001742/1.031, allocations: 111.2 kB / 1.111 GB, free: 5.703 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001629/1.032, allocations: 0.7581 MB / 1.112 GB, free: 5.305 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/1.032, allocations: 0 / 1.112 GB, free: 5.305 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004634/1.033, allocations: 268.8 kB / 1.112 GB, free: 5.145 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005039/1.033, allocations: 41.39 kB / 1.112 GB, free: 5.125 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/1.034, allocations: 0.5915 MB / 1.112 GB, free: 4.746 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004269/1.035, allocations: 0.7671 MB / 1.113 GB, free: 4.043 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/1.035, allocations: 28.44 kB / 1.113 GB, free: 4.031 MB / 0.8731 GB Notification: Performance of SimCode: time 2.8e-07/1.035, allocations: 0 / 1.113 GB, free: 4.031 MB / 0.8731 GB Notification: Performance of Templates: time 0.008935/1.044, allocations: 4.333 MB / 1.117 GB, free: 3.688 MB / 0.8731 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches