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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.007752/0.007752, allocations: 101.4 kB / 15.88 MB, free: 5.863 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.001711/0.001711, allocations: 190.6 kB / 16.79 MB, free: 5.805 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.474/1.474, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.638/2.638, allocations: 437 MB / 0.7106 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 67.91 kB / 0.8692 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.584/0.5855, allocations: 151.6 MB / 1.017 GB, free: 2.758 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004686/0.5902, allocations: 2.952 MB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002899/0.5931, allocations: 1.824 MB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001801/0.5933, allocations: 7.938 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0007756/0.5941, allocations: 215.3 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005503/0.5947, allocations: 179.3 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005739/0.5953, allocations: 211.6 kB / 1.023 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005563/0.5958, allocations: 426.9 kB / 1.023 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000408/0.5963, allocations: 182.1 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002358/0.5965, allocations: 107.6 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00033/0.5969, allocations: 159.4 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.882e-05/0.5969, allocations: 16 kB / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005501/0.5975, allocations: 331.4 kB / 1.024 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001024/0.5976, allocations: 79.78 kB / 1.024 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001397/0.5977, allocations: 111.4 kB / 1.024 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000486/0.5982, allocations: 337.2 kB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.5982, allocations: 0 / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.082e-06/0.5982, allocations: 0 / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.436e-06/0.5983, allocations: 0 / 1.024 GB, free: 11.63 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.001036/0.5993, allocations: 0.5536 MB / 1.025 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.5994, allocations: 8.031 kB / 1.025 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009466/0.6003, allocations: 112.5 kB / 1.025 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004506/0.6008, allocations: 261.4 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.581e-05/0.6008, allocations: 12.75 kB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.261e-05/0.6009, allocations: 20.38 kB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007033/0.6016, allocations: 390.5 kB / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.6016, allocations: 0 / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.609e-05/0.6016, allocations: 15.98 kB / 1.026 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.072e-05/0.6017, allocations: 24.31 kB / 1.026 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007168/0.6024, allocations: 340.6 kB / 1.026 GB, free: 9.805 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001974/0.6044, allocations: 1.736 MB / 1.028 GB, free: 7.934 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007129/0.6051, allocations: 329 kB / 1.028 GB, free: 7.594 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002664/0.6054, allocations: 149.6 kB / 1.028 GB, free: 7.441 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001545/0.6056, allocations: 93.08 kB / 1.028 GB, free: 7.332 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.6056, allocations: 42.56 kB / 1.028 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 1.853e-06/0.6056, allocations: 3.938 kB / 1.028 GB, free: 7.277 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21): time 0.001417/0.607, allocations: 0.5858 MB / 1.029 GB, free: 6.664 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.6071, allocations: 85.3 kB / 1.029 GB, free: 6.562 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002594/0.6074, allocations: 211.8 kB / 1.029 GB, free: 6.348 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.6074, allocations: 29.7 kB / 1.029 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.6075, allocations: 159.8 kB / 1.029 GB, free: 6.152 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.674e-05/0.6076, allocations: 74.98 kB / 1.029 GB, free: 6.078 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.6077, allocations: 53.98 kB / 1.029 GB, free: 6.02 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.6078, allocations: 330.8 kB / 1.03 GB, free: 5.688 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002971/0.6081, allocations: 145.9 kB / 1.03 GB, free: 5.543 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003577/0.6085, allocations: 227.8 kB / 1.03 GB, free: 5.285 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005966/0.6091, allocations: 373.3 kB / 1.03 GB, free: 4.887 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.6091, allocations: 0 / 1.03 GB, free: 4.887 MB / 0.7794 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008838/0.61, allocations: 438.1 kB / 1.031 GB, free: 4.449 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.61, allocations: 12.03 kB / 1.031 GB, free: 4.438 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.6101, allocations: 0 / 1.031 GB, free: 4.438 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002268/0.6103, allocations: 44.81 kB / 1.031 GB, free: 4.391 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000343/0.6106, allocations: 75.88 kB / 1.031 GB, free: 4.316 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001391/0.612, allocations: 1.501 MB / 1.032 GB, free: 2.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003214/0.6124, allocations: 39.84 kB / 1.032 GB, free: 2.641 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.003e-05/0.6124, allocations: 15.98 kB / 1.032 GB, free: 2.625 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003766/0.6128, allocations: 244 kB / 1.033 GB, free: 2.383 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003181/0.6131, allocations: 207.1 kB / 1.033 GB, free: 2.141 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005661/0.6137, allocations: 352.6 kB / 1.033 GB, free: 1.758 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.477e-06/0.6137, allocations: 0 / 1.033 GB, free: 1.758 MB / 0.7794 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.000863/0.6146, allocations: 426 kB / 1.034 GB, free: 1.332 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.6146, allocations: 8.062 kB / 1.034 GB, free: 1.324 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.6146, allocations: 7.938 kB / 1.034 GB, free: 1.316 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001473/0.6148, allocations: 40.81 kB / 1.034 GB, free: 1.273 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003097/0.6151, allocations: 71.89 kB / 1.034 GB, free: 1.203 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001288/0.6164, allocations: 1.493 MB / 1.035 GB, free: 15.57 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002954/0.6167, allocations: 35.89 kB / 1.035 GB, free: 15.54 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.426e-05/0.6167, allocations: 12 kB / 1.035 GB, free: 15.52 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.0001385/0.6169, allocations: 204.7 kB / 1.035 GB, free: 15.32 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.534e-05/0.617, allocations: 23.72 kB / 1.035 GB, free: 15.29 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006847/0.6177, allocations: 349.6 kB / 1.036 GB, free: 14.95 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.525e-06/0.6177, allocations: 11.94 kB / 1.036 GB, free: 14.93 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.6177, allocations: 0 / 1.036 GB, free: 14.93 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.6177, allocations: 3.984 kB / 1.036 GB, free: 14.93 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001457/0.6192, allocations: 0.9675 MB / 1.037 GB, free: 13.88 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.6192, allocations: 4 kB / 1.037 GB, free: 13.88 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002345/0.6194, allocations: 51.89 kB / 1.037 GB, free: 13.83 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001269/0.6196, allocations: 36.83 kB / 1.037 GB, free: 13.79 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.332e-05/0.6196, allocations: 8 kB / 1.037 GB, free: 13.78 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001116/0.6207, allocations: 1.402 MB / 1.038 GB, free: 12.25 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.6207, allocations: 0 / 1.038 GB, free: 12.25 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007323/0.6215, allocations: 0.5472 MB / 1.039 GB, free: 11.66 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/0.6216, allocations: 124.8 kB / 1.039 GB, free: 11.52 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.937e-05/0.6216, allocations: 8 kB / 1.039 GB, free: 11.52 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002648/0.6219, allocations: 19.97 kB / 1.039 GB, free: 11.5 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.236e-05/0.622, allocations: 15.98 kB / 1.039 GB, free: 11.48 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.251e-05/0.622, allocations: 23.86 kB / 1.039 GB, free: 11.46 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001957/0.6222, allocations: 163 kB / 1.039 GB, free: 11.3 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.21e-07/0.6222, allocations: 0 / 1.039 GB, free: 11.3 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006273/0.6229, allocations: 112 kB / 1.039 GB, free: 11.19 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.0001526/0.623, allocations: 99.25 kB / 1.039 GB, free: 11.08 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00141/0.6244, allocations: 0.7538 MB / 1.04 GB, free: 10.3 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/0.6245, allocations: 4.25 kB / 1.04 GB, free: 10.3 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003844/0.6248, allocations: 270.4 kB / 1.04 GB, free: 10.02 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004714/0.6253, allocations: 37.81 kB / 1.04 GB, free: 9.984 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.6264, allocations: 0.6827 MB / 1.041 GB, free: 9.25 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/0.6267, allocations: 0.7678 MB / 1.042 GB, free: 8.457 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.6269, allocations: 23.44 kB / 1.042 GB, free: 8.434 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.6269, allocations: 0 / 1.042 GB, free: 8.434 MB / 0.795 GB Notification: Performance of Templates: time 0.006889/0.6338, allocations: 4.304 MB / 1.046 GB, free: 4.129 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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