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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001616/0.001616, allocations: 115 kB / 17.08 MB, free: 5.988 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001674/0.001674, allocations: 193.2 kB / 20.03 MB, free: 3.059 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 222.9 MB / 245.7 MB, free: 4.203 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.114/3.114, allocations: 489.2 MB / 0.7687 GB, free: 3.75 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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=2500,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=2500,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002145/0.002145, allocations: 63.89 kB / 1.103 GB, free: 0.8203 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.144/1.146, allocations: 163.8 MB / 1.263 GB, free: 8.176 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.00494/1.151, allocations: 2.906 MB / 1.265 GB, free: 6.215 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.003063/1.154, allocations: 1.799 MB / 1.267 GB, free: 4.996 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001729/1.154, allocations: 3.156 kB / 1.267 GB, free: 4.996 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008669/1.155, allocations: 234.4 kB / 1.267 GB, free: 4.855 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005799/1.156, allocations: 200.5 kB / 1.268 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006947/1.157, allocations: 230.8 kB / 1.268 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.000473/1.157, allocations: 319.7 kB / 1.268 GB, free: 4.5 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004274/1.158, allocations: 180.8 kB / 1.268 GB, free: 4.422 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002453/1.158, allocations: 132.8 kB / 1.268 GB, free: 4.363 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003595/1.158, allocations: 155 kB / 1.269 GB, free: 4.297 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.418e-05/1.158, allocations: 20.88 kB / 1.269 GB, free: 4.297 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006479/1.159, allocations: 280.5 kB / 1.269 GB, free: 4.207 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001328/1.159, allocations: 89.02 kB / 1.269 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001533/1.159, allocations: 121.3 kB / 1.269 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007678/1.16, allocations: 443.2 kB / 1.269 GB, free: 3.949 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/1.16, allocations: 0.8438 kB / 1.269 GB, free: 3.949 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.964e-06/1.16, allocations: 0 / 1.269 GB, free: 3.949 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.35e-05/1.16, allocations: 0 / 1.269 GB, free: 3.949 MB / 0.9981 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.001/1.161, allocations: 0.5634 MB / 1.27 GB, free: 3.457 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/1.161, allocations: 9.625 kB / 1.27 GB, free: 3.457 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009471/1.162, allocations: 117.8 kB / 1.27 GB, free: 3.434 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003237/1.162, allocations: 268.4 kB / 1.27 GB, free: 3.191 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.504e-05/1.162, allocations: 12.53 kB / 1.27 GB, free: 3.188 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.641e-05/1.162, allocations: 20.06 kB / 1.27 GB, free: 3.18 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007572/1.163, allocations: 400.3 kB / 1.271 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/1.163, allocations: 0.7188 kB / 1.271 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.341e-05/1.163, allocations: 10.27 kB / 1.271 GB, free: 2.949 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.114e-05/1.163, allocations: 26.02 kB / 1.271 GB, free: 2.941 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007637/1.164, allocations: 336.2 kB / 1.271 GB, free: 2.84 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001912/1.166, allocations: 1.768 MB / 1.273 GB, free: 1.367 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007932/1.167, allocations: 330.1 kB / 1.273 GB, free: 1.23 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002997/1.167, allocations: 152.7 kB / 1.273 GB, free: 1.168 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001376/1.167, allocations: 86.42 kB / 1.273 GB, free: 1.074 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/1.167, allocations: 37.47 kB / 1.273 GB, free: 1.031 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=20): time 1.863e-06/1.167, allocations: 0 / 1.273 GB, free: 1.031 MB / 0.9981 GB Notification: Performance of matching and sorting (n=21): time 0.001519/1.169, allocations: 0.5989 MB / 1.274 GB, free: 0.7188 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.667e-05/1.169, allocations: 84.55 kB / 1.274 GB, free: 0.6211 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002716/1.169, allocations: 214.7 kB / 1.274 GB, free: 492 kB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/1.169, allocations: 34.98 kB / 1.274 GB, free: 452 kB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.546e-05/1.169, allocations: 165.4 kB / 1.275 GB, free: 304 kB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 5.366e-05/1.169, allocations: 75.77 kB / 1.275 GB, free: 244 kB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/1.17, allocations: 60.27 kB / 1.275 GB, free: 208 kB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001315/1.17, allocations: 329.7 kB / 1.275 GB, free: 15.88 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003561/1.17, allocations: 147 kB / 1.275 GB, free: 15.83 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004136/1.17, allocations: 219.1 kB / 1.275 GB, free: 15.69 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000742/1.171, allocations: 393.6 kB / 1.276 GB, free: 15.46 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/1.171, allocations: 5.25 kB / 1.276 GB, free: 15.45 MB / 1.014 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009958/1.172, allocations: 445.7 kB / 1.276 GB, free: 15.27 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/1.172, allocations: 5.625 kB / 1.276 GB, free: 15.27 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/1.172, allocations: 3.062 kB / 1.276 GB, free: 15.27 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002672/1.173, allocations: 49.56 kB / 1.276 GB, free: 15.25 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003738/1.173, allocations: 78.02 kB / 1.276 GB, free: 15.25 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001709/1.175, allocations: 1.611 MB / 1.278 GB, free: 13.72 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003483/1.175, allocations: 33.66 kB / 1.278 GB, free: 13.72 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.228e-05/1.175, allocations: 11.53 kB / 1.278 GB, free: 13.72 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004596/1.176, allocations: 245.9 kB / 1.278 GB, free: 13.58 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003915/1.176, allocations: 225.4 kB / 1.278 GB, free: 13.43 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006813/1.177, allocations: 367.1 kB / 1.279 GB, free: 13.21 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.533e-06/1.177, allocations: 0 / 1.279 GB, free: 13.21 MB / 1.014 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.001011/1.178, allocations: 434.4 kB / 1.279 GB, free: 13.03 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/1.178, allocations: 6.281 kB / 1.279 GB, free: 13.03 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/1.178, allocations: 3.969 kB / 1.279 GB, free: 13.03 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001666/1.178, allocations: 43.5 kB / 1.279 GB, free: 13.02 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003872/1.178, allocations: 77.97 kB / 1.279 GB, free: 13.01 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001674/1.18, allocations: 1.62 MB / 1.281 GB, free: 11.48 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003294/1.18, allocations: 28.38 kB / 1.281 GB, free: 11.48 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.29e-05/1.18, allocations: 10.47 kB / 1.281 GB, free: 11.48 MB / 1.014 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.0001857/1.181, allocations: 203 kB / 1.281 GB, free: 11.28 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.308e-05/1.181, allocations: 26.38 kB / 1.281 GB, free: 11.27 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007781/1.181, allocations: 348.2 kB / 1.281 GB, free: 11.12 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/1.181, allocations: 3.844 kB / 1.281 GB, free: 11.12 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/1.181, allocations: 4.828 kB / 1.281 GB, free: 11.11 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/1.181, allocations: 3.594 kB / 1.281 GB, free: 11.11 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001634/1.183, allocations: 0.9709 MB / 1.282 GB, free: 10.48 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/1.183, allocations: 5.75 kB / 1.282 GB, free: 10.47 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002289/1.183, allocations: 49.66 kB / 1.282 GB, free: 10.47 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001302/1.183, allocations: 37.34 kB / 1.282 GB, free: 10.46 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.542e-05/1.183, allocations: 7.281 kB / 1.282 GB, free: 10.45 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001423/1.185, allocations: 1.52 MB / 1.284 GB, free: 8.988 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/1.185, allocations: 2.25 kB / 1.284 GB, free: 8.988 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000851/1.186, allocations: 0.5383 MB / 1.284 GB, free: 8.617 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001468/1.186, allocations: 126 kB / 1.285 GB, free: 8.5 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.925e-05/1.186, allocations: 8.188 kB / 1.285 GB, free: 8.496 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002695/1.186, allocations: 24.94 kB / 1.285 GB, free: 8.492 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.78e-05/1.186, allocations: 19.08 kB / 1.285 GB, free: 8.488 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.379e-05/1.186, allocations: 10.53 kB / 1.285 GB, free: 8.484 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0002413/1.187, allocations: 164.1 kB / 1.285 GB, free: 8.383 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.91e-07/1.187, allocations: 4 kB / 1.285 GB, free: 8.379 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0007222/1.187, allocations: 116.5 kB / 1.285 GB, free: 8.359 MB / 1.014 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.0001755/1.188, allocations: 100.5 kB / 1.285 GB, free: 8.273 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001634/1.189, allocations: 0.7729 MB / 1.286 GB, free: 7.863 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 5.81e-06/1.189, allocations: 2.906 kB / 1.286 GB, free: 7.863 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0004365/1.19, allocations: 269.8 kB / 1.286 GB, free: 7.703 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000498/1.19, allocations: 34.03 kB / 1.286 GB, free: 7.691 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/1.191, allocations: 0.5982 MB / 1.287 GB, free: 7.301 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004577/1.192, allocations: 0.7713 MB / 1.287 GB, free: 6.594 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/1.192, allocations: 28.52 kB / 1.287 GB, free: 6.582 MB / 1.014 GB Notification: Performance of SimCode: time 5.11e-07/1.192, allocations: 0 / 1.287 GB, free: 6.582 MB / 1.014 GB Notification: Performance of Templates: time 0.009793/1.202, allocations: 4.354 MB / 1.292 GB, free: 6.25 MB / 1.014 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) [Timeout 800] 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_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.702377658104524]