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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.005139/0.005139, allocations: 104.5 kB / 15.74 MB, free: 5.598 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.001078/0.001078, allocations: 191.8 kB / 16.67 MB, free: 5.527 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.306/1.306, allocations: 222.9 MB / 240.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.512/2.512, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 63.84 kB / 1.054 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9171/0.9184, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004398/0.9228, allocations: 2.895 MB / 1.211 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002671/0.9255, allocations: 1.815 MB / 1.212 GB, free: 8.906 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.9257, allocations: 4 kB / 1.212 GB, free: 8.902 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0007706/0.9264, allocations: 239 kB / 1.213 GB, free: 8.668 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0004015/0.9269, allocations: 195.1 kB / 1.213 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004673/0.9273, allocations: 231.4 kB / 1.213 GB, free: 8.25 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003387/0.9277, allocations: 311 kB / 1.213 GB, free: 7.945 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003256/0.928, allocations: 178.3 kB / 1.213 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001685/0.9282, allocations: 127.5 kB / 1.214 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002748/0.9285, allocations: 143.5 kB / 1.214 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.392e-05/0.9285, allocations: 23.98 kB / 1.214 GB, free: 7.477 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000381/0.9289, allocations: 271.5 kB / 1.214 GB, free: 7.211 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.815e-05/0.929, allocations: 87.78 kB / 1.214 GB, free: 7.125 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.9291, allocations: 123.4 kB / 1.214 GB, free: 7.004 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004642/0.9296, allocations: 440.4 kB / 1.215 GB, free: 6.578 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.9296, allocations: 0 / 1.215 GB, free: 6.578 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.453e-06/0.9296, allocations: 0 / 1.215 GB, free: 6.578 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.9296, allocations: 0 / 1.215 GB, free: 6.578 MB / 0.9356 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.00095/0.9306, allocations: 0.5418 MB / 1.215 GB, free: 5.984 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.9306, allocations: 12.03 kB / 1.215 GB, free: 5.973 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009179/0.9316, allocations: 112.5 kB / 1.215 GB, free: 5.863 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003549/0.9319, allocations: 271.8 kB / 1.215 GB, free: 5.559 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.932, allocations: 16.73 kB / 1.215 GB, free: 5.543 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.939e-05/0.932, allocations: 16.38 kB / 1.216 GB, free: 5.527 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006568/0.9327, allocations: 394.5 kB / 1.216 GB, free: 5.109 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.9327, allocations: 4 kB / 1.216 GB, free: 5.105 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.826e-05/0.9327, allocations: 4 kB / 1.216 GB, free: 5.102 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.301e-05/0.9328, allocations: 28.31 kB / 1.216 GB, free: 5.07 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006652/0.9334, allocations: 340.6 kB / 1.216 GB, free: 4.738 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0018/0.9353, allocations: 1.732 MB / 1.218 GB, free: 2.871 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007234/0.936, allocations: 330.4 kB / 1.218 GB, free: 2.531 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002924/0.9363, allocations: 149.6 kB / 1.218 GB, free: 2.379 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000186/0.9365, allocations: 97.08 kB / 1.218 GB, free: 2.266 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.732e-05/0.9365, allocations: 34.5 kB / 1.219 GB, free: 2.223 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=20): time 1.804e-06/0.9366, allocations: 0 / 1.219 GB, free: 2.223 MB / 0.9356 GB Notification: Performance of matching and sorting (n=21): time 0.001467/0.938, allocations: 0.5981 MB / 1.219 GB, free: 1.598 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.863e-05/0.9381, allocations: 81.11 kB / 1.219 GB, free: 1.5 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002626/0.9384, allocations: 207.8 kB / 1.219 GB, free: 1.285 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.594e-05/0.9384, allocations: 29.7 kB / 1.219 GB, free: 1.25 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.9385, allocations: 163.8 kB / 1.22 GB, free: 1.086 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.18e-05/0.9386, allocations: 70.95 kB / 1.22 GB, free: 1.016 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.9387, allocations: 65.88 kB / 1.22 GB, free: 0.9453 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001372/0.9388, allocations: 330.8 kB / 1.22 GB, free: 0.6133 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003086/0.9392, allocations: 137.9 kB / 1.22 GB, free: 488 kB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003447/0.9395, allocations: 219.3 kB / 1.22 GB, free: 232 kB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006164/0.9401, allocations: 373.9 kB / 1.221 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.9401, allocations: 7.938 kB / 1.221 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008546/0.941, allocations: 436.6 kB / 1.221 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.941, allocations: 4 kB / 1.221 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/0.9411, allocations: 4 kB / 1.221 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002655/0.9413, allocations: 44.81 kB / 1.221 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000334/0.9417, allocations: 71.88 kB / 1.221 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001609/0.9433, allocations: 1.623 MB / 1.223 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003037/0.9436, allocations: 40 kB / 1.223 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.691e-05/0.9436, allocations: 12 kB / 1.223 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003665/0.944, allocations: 236.6 kB / 1.223 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003147/0.9443, allocations: 224.3 kB / 1.223 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005317/0.9449, allocations: 353.1 kB / 1.224 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.583e-06/0.9449, allocations: 4 kB / 1.224 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0007963/0.9457, allocations: 427.8 kB / 1.224 GB, free: 12.13 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 9.769e-06/0.9457, allocations: 4 kB / 1.224 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.9457, allocations: 4 kB / 1.224 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001263/0.9459, allocations: 36.83 kB / 1.224 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000288/0.9462, allocations: 80.12 kB / 1.224 GB, free: 12 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001205/0.9474, allocations: 1.603 MB / 1.226 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002765/0.9477, allocations: 35.81 kB / 1.226 GB, free: 10.22 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.241e-05/0.9477, allocations: 15.94 kB / 1.226 GB, free: 10.21 MB / 0.9512 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.0001304/0.9478, allocations: 196.2 kB / 1.226 GB, free: 10.01 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.616e-05/0.9479, allocations: 23.75 kB / 1.226 GB, free: 9.984 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006592/0.9486, allocations: 360 kB / 1.226 GB, free: 9.629 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.9486, allocations: 4 kB / 1.226 GB, free: 9.625 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.9486, allocations: 0 / 1.226 GB, free: 9.625 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.9486, allocations: 0 / 1.226 GB, free: 9.625 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001393/0.95, allocations: 0.9639 MB / 1.227 GB, free: 8.582 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.95, allocations: 4 kB / 1.227 GB, free: 8.578 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002196/0.9502, allocations: 56.06 kB / 1.227 GB, free: 8.523 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001089/0.9504, allocations: 40.81 kB / 1.227 GB, free: 8.48 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.164e-05/0.9504, allocations: 8 kB / 1.227 GB, free: 8.473 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001055/0.9514, allocations: 1.508 MB / 1.229 GB, free: 6.82 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.9515, allocations: 4.031 kB / 1.229 GB, free: 6.816 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006541/0.9521, allocations: 0.5325 MB / 1.229 GB, free: 6.25 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.9523, allocations: 132.7 kB / 1.23 GB, free: 6.102 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.883e-05/0.9523, allocations: 7.875 kB / 1.23 GB, free: 6.094 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002518/0.9526, allocations: 27.97 kB / 1.23 GB, free: 6.066 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.028e-05/0.9527, allocations: 27.91 kB / 1.23 GB, free: 6.039 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.9527, allocations: 4 kB / 1.23 GB, free: 6.035 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001716/0.9528, allocations: 163 kB / 1.23 GB, free: 5.875 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9529, allocations: 0 / 1.23 GB, free: 5.875 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0005715/0.9534, allocations: 108 kB / 1.23 GB, free: 5.77 MB / 0.9512 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.0001584/0.9536, allocations: 119.1 kB / 1.23 GB, free: 5.645 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001326/0.9549, allocations: 0.755 MB / 1.231 GB, free: 4.863 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.9549, allocations: 0 / 1.231 GB, free: 4.863 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003798/0.9553, allocations: 275.9 kB / 1.231 GB, free: 4.582 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004621/0.9558, allocations: 41.45 kB / 1.231 GB, free: 4.547 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008904/0.9567, allocations: 0.5398 MB / 1.232 GB, free: 3.961 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.957, allocations: 0.7678 MB / 1.232 GB, free: 3.168 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0002357/0.9573, allocations: 93.88 kB / 1.232 GB, free: 3.074 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.343e-05/0.9574, allocations: 27.42 kB / 1.232 GB, free: 3.047 MB / 0.9512 GB Notification: Performance of SimCode: time 2.31e-07/0.9574, allocations: 0 / 1.232 GB, free: 3.047 MB / 0.9512 GB Notification: Performance of Templates: time 0.00664/0.964, allocations: 3.53 MB / 1.236 GB, free: 15.52 MB / 0.9669 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches