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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 198.1 kB / 16.79 MB, free: 6.809 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.444/1.444, allocations: 222.9 MB / 240.5 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.759/2.759, allocations: 461.8 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 62.94 kB / 0.899 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2873, allocations: 157.4 MB / 1.053 GB, free: 8.359 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004791/0.2921, allocations: 2.931 MB / 1.056 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002803/0.295, allocations: 1.842 MB / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001826/0.2952, allocations: 7.938 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0007474/0.296, allocations: 207.3 kB / 1.058 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004957/0.2965, allocations: 199.2 kB / 1.058 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005133/0.297, allocations: 199.5 kB / 1.058 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004361/0.2974, allocations: 430.9 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003677/0.2978, allocations: 170.2 kB / 1.059 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002028/0.298, allocations: 115.5 kB / 1.059 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002873/0.2983, allocations: 147.5 kB / 1.059 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.343e-05/0.2984, allocations: 12 kB / 1.059 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005426/0.2989, allocations: 339.3 kB / 1.059 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.299, allocations: 83.72 kB / 1.059 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.2992, allocations: 107.5 kB / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004453/0.2996, allocations: 339.5 kB / 1.06 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.2996, allocations: 0 / 1.06 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.042e-06/0.2996, allocations: 0 / 1.06 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.066e-06/0.2997, allocations: 4 kB / 1.06 GB, free: 1.242 MB / 0.8106 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.0009801/0.3006, allocations: 0.5419 MB / 1.06 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.3007, allocations: 8.031 kB / 1.06 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009386/0.3016, allocations: 116.5 kB / 1.06 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003267/0.302, allocations: 251.9 kB / 1.061 GB, free: 248 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/0.302, allocations: 20.67 kB / 1.061 GB, free: 228 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.559e-05/0.3021, allocations: 20.36 kB / 1.061 GB, free: 208 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006867/0.3027, allocations: 390.5 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.3028, allocations: 7.938 kB / 1.061 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.272e-05/0.3028, allocations: 7.984 kB / 1.061 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.41e-05/0.3029, allocations: 28.31 kB / 1.061 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006896/0.3036, allocations: 340.6 kB / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001914/0.3055, allocations: 1.732 MB / 1.063 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000681/0.3062, allocations: 337 kB / 1.063 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002621/0.3065, allocations: 149.6 kB / 1.063 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001396/0.3066, allocations: 89.08 kB / 1.064 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.3066, allocations: 38.56 kB / 1.064 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 1.634e-06/0.3066, allocations: 7.938 kB / 1.064 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21): time 0.001345/0.308, allocations: 0.5888 MB / 1.064 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.3081, allocations: 81.11 kB / 1.064 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002641/0.3083, allocations: 215.9 kB / 1.064 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.904e-05/0.3084, allocations: 33.7 kB / 1.064 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.233e-05/0.3085, allocations: 155.9 kB / 1.065 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.116e-05/0.3085, allocations: 74.95 kB / 1.065 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.3086, allocations: 57.97 kB / 1.065 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3088, allocations: 330.8 kB / 1.065 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002984/0.3091, allocations: 145.9 kB / 1.065 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003322/0.3094, allocations: 211.3 kB / 1.065 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005893/0.31, allocations: 383.2 kB / 1.066 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.31, allocations: 0 / 1.066 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008816/0.3109, allocations: 443.8 kB / 1.066 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.311, allocations: 9.406 kB / 1.066 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.311, allocations: 4 kB / 1.066 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002298/0.3112, allocations: 41.17 kB / 1.066 GB, free: 9.992 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003315/0.3116, allocations: 71.88 kB / 1.066 GB, free: 9.922 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001333/0.3129, allocations: 1.501 MB / 1.068 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003125/0.3132, allocations: 35.81 kB / 1.068 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.752e-05/0.3133, allocations: 12 kB / 1.068 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003532/0.3136, allocations: 240.6 kB / 1.068 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003272/0.314, allocations: 215.8 kB / 1.068 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005404/0.3145, allocations: 356 kB / 1.069 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.234e-06/0.3145, allocations: 0 / 1.069 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0008174/0.3153, allocations: 419.2 kB / 1.069 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/0.3154, allocations: 8 kB / 1.069 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.166e-06/0.3154, allocations: 384 / 1.069 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001464/0.3155, allocations: 48.77 kB / 1.069 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003005/0.3158, allocations: 75.81 kB / 1.069 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001196/0.3171, allocations: 1.489 MB / 1.071 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002965/0.3174, allocations: 31.91 kB / 1.071 GB, free: 5.148 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.405e-05/0.3174, allocations: 12 kB / 1.071 GB, free: 5.137 MB / 0.8262 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.0001391/0.3175, allocations: 210.2 kB / 1.071 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.313e-05/0.3176, allocations: 19.72 kB / 1.071 GB, free: 4.906 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006741/0.3183, allocations: 352 kB / 1.071 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.3183, allocations: 7.938 kB / 1.071 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.3183, allocations: 0 / 1.071 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.3183, allocations: 4 kB / 1.071 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001397/0.3197, allocations: 0.9638 MB / 1.072 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.3197, allocations: 4 kB / 1.072 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002224/0.32, allocations: 47.97 kB / 1.072 GB, free: 3.449 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001385/0.3201, allocations: 40.81 kB / 1.072 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.503e-05/0.3202, allocations: 12 kB / 1.072 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001053/0.3212, allocations: 1.414 MB / 1.074 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.3212, allocations: 3.938 kB / 1.074 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006954/0.3219, allocations: 0.5349 MB / 1.074 GB, free: 1.27 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.3221, allocations: 120.9 kB / 1.074 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.28e-05/0.3221, allocations: 19.84 kB / 1.074 GB, free: 1.113 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002623/0.3224, allocations: 19.97 kB / 1.074 GB, free: 1.094 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.281e-05/0.3225, allocations: 19.97 kB / 1.074 GB, free: 1.074 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.966e-05/0.3225, allocations: 11.94 kB / 1.074 GB, free: 1.062 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001876/0.3227, allocations: 163 kB / 1.075 GB, free: 0.9023 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3227, allocations: 0 / 1.075 GB, free: 0.9023 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006159/0.3233, allocations: 112 kB / 1.075 GB, free: 0.793 MB / 0.8262 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.0001672/0.3235, allocations: 111.2 kB / 1.075 GB, free: 0.6758 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001437/0.3249, allocations: 0.7447 MB / 1.075 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3249, allocations: 1 kB / 1.075 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003917/0.3253, allocations: 266.9 kB / 1.076 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000479/0.3258, allocations: 38.03 kB / 1.076 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001044/0.3269, allocations: 0.6704 MB / 1.076 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003451/0.3272, allocations: 0.7717 MB / 1.077 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.3273, allocations: 31.36 kB / 1.077 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of SimCode: time 3.6e-07/0.3273, allocations: 0 / 1.077 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of Templates: time 0.006792/0.3341, allocations: 4.296 MB / 1.081 GB, free: 9.754 MB / 0.8419 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,grid.P.real,grid.P.apparent Variables in the result:grid.P.apparent,grid.P.real,time