Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001131/0.001131, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.01/0.01, allocations: 172.1 kB / 16.26 MB, free: 6.613 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.528/1.528, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.789/2.789, allocations: 437.8 MB / 0.7121 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003757/0.0003759, allocations: 8 kB / 0.8728 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8769/0.8772, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.005063/0.8824, allocations: 2.582 MB / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003706/0.8861, allocations: 1.789 MB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002279/0.8864, allocations: 4 kB / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002531/0.8867, allocations: 31.72 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0006704/0.8874, allocations: 187.3 kB / 1.027 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007/0.8881, allocations: 207.5 kB / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006706/0.8888, allocations: 430.8 kB / 1.028 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009403/0.8897, allocations: 375 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002709/0.89, allocations: 107.5 kB / 1.029 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003098/0.8903, allocations: 143.4 kB / 1.029 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.685e-05/0.8904, allocations: 16 kB / 1.029 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006157/0.891, allocations: 335.3 kB / 1.029 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.809e-05/0.8911, allocations: 71.8 kB / 1.029 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.8912, allocations: 133.1 kB / 1.029 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005046/0.8917, allocations: 432.5 kB / 1.03 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.8917, allocations: 0 / 1.03 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.893e-06/0.8918, allocations: 0 / 1.03 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.8918, allocations: 0 / 1.03 GB, free: 8.988 MB / 0.7794 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.0008505/0.8926, allocations: 0.5238 MB / 1.03 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.8927, allocations: 8.031 kB / 1.03 GB, free: 8.406 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000935/0.8936, allocations: 116.5 kB / 1.03 GB, free: 8.293 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003267/0.894, allocations: 259.2 kB / 1.031 GB, free: 8.004 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/0.894, allocations: 16.75 kB / 1.031 GB, free: 7.988 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.938e-05/0.894, allocations: 16.38 kB / 1.031 GB, free: 7.973 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006998/0.8948, allocations: 398.5 kB / 1.031 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.8948, allocations: 7.938 kB / 1.031 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.318e-05/0.8948, allocations: 4 kB / 1.031 GB, free: 7.543 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.658e-05/0.8949, allocations: 32.3 kB / 1.031 GB, free: 7.508 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007179/0.8956, allocations: 344.6 kB / 1.031 GB, free: 7.172 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001945/0.8976, allocations: 1.736 MB / 1.033 GB, free: 5.301 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007358/0.8983, allocations: 352.9 kB / 1.033 GB, free: 4.938 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002803/0.8986, allocations: 149.6 kB / 1.033 GB, free: 4.785 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001637/0.8988, allocations: 93.09 kB / 1.034 GB, free: 4.676 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.8988, allocations: 34.56 kB / 1.034 GB, free: 4.633 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 1.993e-06/0.8988, allocations: 0 / 1.034 GB, free: 4.633 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21): time 0.001421/0.9003, allocations: 0.6124 MB / 1.034 GB, free: 3.992 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.9003, allocations: 77.11 kB / 1.034 GB, free: 3.898 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002507/0.9006, allocations: 215.7 kB / 1.034 GB, free: 3.68 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/0.9006, allocations: 29.7 kB / 1.035 GB, free: 3.645 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.9007, allocations: 159.9 kB / 1.035 GB, free: 3.484 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.792e-05/0.9008, allocations: 74.91 kB / 1.035 GB, free: 3.41 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.215e-05/0.9008, allocations: 29.7 kB / 1.035 GB, free: 3.375 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.901, allocations: 326.8 kB / 1.035 GB, free: 3.047 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003081/0.9013, allocations: 140.5 kB / 1.035 GB, free: 2.91 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003556/0.9017, allocations: 227.8 kB / 1.035 GB, free: 2.652 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006356/0.9023, allocations: 388.8 kB / 1.036 GB, free: 2.238 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.9023, allocations: 0 / 1.036 GB, free: 2.238 MB / 0.7794 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009223/0.9033, allocations: 453.9 kB / 1.036 GB, free: 1.785 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001123/0.9034, allocations: 168.9 kB / 1.036 GB, free: 1.582 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.9034, allocations: 3.984 kB / 1.036 GB, free: 1.578 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00025/0.9036, allocations: 52.75 kB / 1.036 GB, free: 1.523 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000351/0.904, allocations: 75.88 kB / 1.037 GB, free: 1.449 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001404/0.9054, allocations: 1.493 MB / 1.038 GB, free: 15.82 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003244/0.9058, allocations: 39.81 kB / 1.038 GB, free: 15.78 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.082e-05/0.9058, allocations: 15.98 kB / 1.038 GB, free: 15.77 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.152e-06/0.9058, allocations: 7.938 kB / 1.038 GB, free: 15.76 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008193/0.9066, allocations: 380.7 kB / 1.038 GB, free: 15.38 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.9067, allocations: 11.94 kB / 1.038 GB, free: 15.37 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001494/0.9068, allocations: 44.81 kB / 1.038 GB, free: 15.32 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.9071, allocations: 67.89 kB / 1.039 GB, free: 15.26 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001241/0.9084, allocations: 1.485 MB / 1.04 GB, free: 13.63 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002487/0.9086, allocations: 35.81 kB / 1.04 GB, free: 13.6 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.331e-05/0.9087, allocations: 12 kB / 1.04 GB, free: 13.59 MB / 0.795 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.0002097/0.9089, allocations: 241.6 kB / 1.04 GB, free: 13.34 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.489e-05/0.909, allocations: 15.81 kB / 1.04 GB, free: 13.32 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000717/0.9097, allocations: 368 kB / 1.041 GB, free: 12.96 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.9097, allocations: 4 kB / 1.041 GB, free: 12.95 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.9097, allocations: 0 / 1.041 GB, free: 12.95 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.77e-06/0.9097, allocations: 3.938 kB / 1.041 GB, free: 12.95 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001484/0.9112, allocations: 0.9814 MB / 1.042 GB, free: 11.89 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.9112, allocations: 224 / 1.042 GB, free: 11.89 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002351/0.9115, allocations: 55.95 kB / 1.042 GB, free: 11.84 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001255/0.9116, allocations: 36.83 kB / 1.042 GB, free: 11.8 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.9116, allocations: 7.938 kB / 1.042 GB, free: 11.79 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001063/0.9127, allocations: 1.41 MB / 1.043 GB, free: 10.25 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.9127, allocations: 11.88 kB / 1.043 GB, free: 10.23 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007183/0.9134, allocations: 0.5361 MB / 1.044 GB, free: 9.66 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.9136, allocations: 132.7 kB / 1.044 GB, free: 9.512 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.984e-05/0.9136, allocations: 7.984 kB / 1.044 GB, free: 9.504 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002667/0.9139, allocations: 23.97 kB / 1.044 GB, free: 9.48 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.02e-05/0.914, allocations: 19.98 kB / 1.044 GB, free: 9.461 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.914, allocations: 4 kB / 1.044 GB, free: 9.457 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001865/0.9142, allocations: 167 kB / 1.044 GB, free: 9.293 MB / 0.795 GB Notification: Performance of sort global known variables: time 3.61e-07/0.9142, allocations: 0 / 1.044 GB, free: 9.293 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006179/0.9148, allocations: 112 kB / 1.044 GB, free: 9.184 MB / 0.795 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.0001512/0.915, allocations: 107.2 kB / 1.044 GB, free: 9.07 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001377/0.9164, allocations: 0.7722 MB / 1.045 GB, free: 8.277 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.9164, allocations: 0 / 1.045 GB, free: 8.277 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004256/0.9168, allocations: 283 kB / 1.045 GB, free: 7.988 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005207/0.9173, allocations: 35.92 kB / 1.045 GB, free: 7.953 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009894/0.9183, allocations: 0.6535 MB / 1.046 GB, free: 7.246 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000364/0.9187, allocations: 0.7717 MB / 1.047 GB, free: 6.449 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002865/0.919, allocations: 89.88 kB / 1.047 GB, free: 6.363 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.254e-05/0.9191, allocations: 27.36 kB / 1.047 GB, free: 6.336 MB / 0.795 GB Notification: Performance of SimCode: time 2.5e-07/0.9191, allocations: 0 / 1.047 GB, free: 6.336 MB / 0.795 GB Notification: Performance of Templates: time 0.006975/0.9261, allocations: 3.176 MB / 1.05 GB, free: 3.168 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches