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 12.0.0-master/package.mo", uses=false) 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=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.001625/0.001624, allocations: 117.8 kB / 16.42 MB, free: 6.48 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.00204/0.00204, allocations: 185.7 kB / 17.34 MB, free: 5.746 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.515/1.515, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.745/2.745, allocations: 472.7 MB / 0.746 GB, free: 456 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 67.89 kB / 1.07 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8217/0.8232, allocations: 159.9 MB / 1.226 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004836/0.828, allocations: 2.886 MB / 1.229 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.003193/0.8313, allocations: 1.815 MB / 1.231 GB, free: 8.812 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002563/0.8316, allocations: 8 kB / 1.231 GB, free: 8.805 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0009644/0.8326, allocations: 235 kB / 1.231 GB, free: 8.574 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.000697/0.8333, allocations: 199.1 kB / 1.231 GB, free: 8.379 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007024/0.834, allocations: 235.3 kB / 1.232 GB, free: 8.148 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0004971/0.8345, allocations: 307 kB / 1.232 GB, free: 7.848 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003826/0.8349, allocations: 174.3 kB / 1.232 GB, free: 7.676 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002522/0.8352, allocations: 131.5 kB / 1.232 GB, free: 7.547 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003444/0.8355, allocations: 147.5 kB / 1.232 GB, free: 7.402 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.589e-05/0.8356, allocations: 23.94 kB / 1.232 GB, free: 7.379 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005236/0.8361, allocations: 279.4 kB / 1.233 GB, free: 7.105 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.8362, allocations: 79.8 kB / 1.233 GB, free: 7.027 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.8364, allocations: 115.5 kB / 1.233 GB, free: 6.914 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0006985/0.8371, allocations: 443 kB / 1.233 GB, free: 6.484 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.8371, allocations: 8 kB / 1.233 GB, free: 6.477 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.203e-06/0.8371, allocations: 0 / 1.233 GB, free: 6.477 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.157e-06/0.8371, allocations: 0 / 1.233 GB, free: 6.477 MB / 0.9512 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.001018/0.8381, allocations: 0.5491 MB / 1.234 GB, free: 5.875 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.8382, allocations: 8.031 kB / 1.234 GB, free: 5.867 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009709/0.8392, allocations: 112.6 kB / 1.234 GB, free: 5.758 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003984/0.8396, allocations: 269.7 kB / 1.234 GB, free: 5.457 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.8396, allocations: 12.75 kB / 1.234 GB, free: 5.445 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.838e-05/0.8397, allocations: 16.38 kB / 1.234 GB, free: 5.43 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006902/0.8404, allocations: 390.5 kB / 1.234 GB, free: 5.012 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.8404, allocations: 4 kB / 1.235 GB, free: 5.008 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.044e-05/0.8404, allocations: 4 kB / 1.235 GB, free: 5.004 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.284e-05/0.8405, allocations: 28.31 kB / 1.235 GB, free: 4.973 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007207/0.8412, allocations: 344.6 kB / 1.235 GB, free: 4.637 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002331/0.8435, allocations: 1.744 MB / 1.237 GB, free: 2.758 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007183/0.8443, allocations: 331.5 kB / 1.237 GB, free: 2.418 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002851/0.8446, allocations: 153.6 kB / 1.237 GB, free: 2.262 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001714/0.8447, allocations: 89.11 kB / 1.237 GB, free: 2.156 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.8448, allocations: 38.5 kB / 1.237 GB, free: 2.109 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=20): time 2.465e-06/0.8448, allocations: 0 / 1.237 GB, free: 2.109 MB / 0.9512 GB Notification: Performance of matching and sorting (n=21): time 0.001541/0.8463, allocations: 0.5979 MB / 1.238 GB, free: 1.484 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.8464, allocations: 81.11 kB / 1.238 GB, free: 1.387 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002971/0.8467, allocations: 219.7 kB / 1.238 GB, free: 1.156 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.241e-05/0.8468, allocations: 29.7 kB / 1.238 GB, free: 1.121 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.8469, allocations: 168.1 kB / 1.238 GB, free: 0.9531 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 7.873e-05/0.847, allocations: 79.36 kB / 1.238 GB, free: 0.875 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.8471, allocations: 57.97 kB / 1.238 GB, free: 0.8125 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.8473, allocations: 326.8 kB / 1.239 GB, free: 496 kB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003169/0.8476, allocations: 145.9 kB / 1.239 GB, free: 348 kB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003768/0.848, allocations: 220.4 kB / 1.239 GB, free: 92 kB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00063/0.8486, allocations: 379.4 kB / 1.239 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.8486, allocations: 7.938 kB / 1.239 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008946/0.8495, allocations: 441 kB / 1.24 GB, free: 15.24 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.8496, allocations: 4 kB / 1.24 GB, free: 15.23 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.8496, allocations: 4 kB / 1.24 GB, free: 15.23 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002433/0.8498, allocations: 40.81 kB / 1.24 GB, free: 15.19 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003518/0.8502, allocations: 71.88 kB / 1.24 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001536/0.8517, allocations: 1.607 MB / 1.241 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003139/0.8521, allocations: 39.97 kB / 1.242 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.86e-05/0.8521, allocations: 16 kB / 1.242 GB, free: 13.31 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003692/0.8525, allocations: 236.6 kB / 1.242 GB, free: 13.07 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003227/0.8528, allocations: 211.3 kB / 1.242 GB, free: 12.83 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005589/0.8534, allocations: 353.1 kB / 1.242 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.867e-06/0.8534, allocations: 4 kB / 1.242 GB, free: 12.44 MB / 0.9669 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0009548/0.8543, allocations: 428 kB / 1.243 GB, free: 12.02 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 9.407e-06/0.8544, allocations: 4 kB / 1.243 GB, free: 12.01 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.8544, allocations: 8 kB / 1.243 GB, free: 12 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001436/0.8545, allocations: 44.8 kB / 1.243 GB, free: 11.96 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002997/0.8548, allocations: 71.89 kB / 1.243 GB, free: 11.89 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001414/0.8563, allocations: 1.611 MB / 1.244 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002977/0.8566, allocations: 39.97 kB / 1.244 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.434e-05/0.8566, allocations: 8 kB / 1.244 GB, free: 10.08 MB / 0.9669 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.0001503/0.8568, allocations: 196.7 kB / 1.245 GB, free: 9.883 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.068e-05/0.8568, allocations: 23.86 kB / 1.245 GB, free: 9.859 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007239/0.8576, allocations: 360 kB / 1.245 GB, free: 9.496 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.8576, allocations: 7.922 kB / 1.245 GB, free: 9.488 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.8576, allocations: 0 / 1.245 GB, free: 9.488 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.8577, allocations: 124.9 kB / 1.245 GB, free: 9.348 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.659e-05/0.8578, allocations: 8 kB / 1.245 GB, free: 9.34 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002886/0.8581, allocations: 23.95 kB / 1.245 GB, free: 9.316 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.698e-05/0.8581, allocations: 19.92 kB / 1.245 GB, free: 9.297 MB / 0.9669 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008285/0.859, allocations: 0.503 MB / 1.246 GB, free: 8.785 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008989/0.8599, allocations: 0.6929 MB / 1.246 GB, free: 8.074 MB / 0.9669 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002554/0.8602, allocations: 127.9 kB / 1.246 GB, free: 7.949 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002023/0.8604, allocations: 167 kB / 1.247 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of Backend: time 5.61e-07/0.8604, allocations: 3.938 kB / 1.247 GB, free: 7.781 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.00201/0.8624, allocations: 0.8499 MB / 1.247 GB, free: 6.898 MB / 0.9669 GB Notification: Performance of SimCode: time 0.001045/0.8635, allocations: 0.9111 MB / 1.248 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of Templates: time 0.01126/0.8747, allocations: 6.279 MB / 1.254 GB, free: 15.67 MB / 0.9825 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) Reference file matches