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.000875/0.000875, allocations: 86.33 kB / 15.06 MB, free: 1.09 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.0009635/0.0009637, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 223.3 MB / 240 MB, free: 5.398 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.779/2.779, allocations: 437.8 MB / 0.7117 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004107/0.0004107, allocations: 8 kB / 0.8722 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.801/0.8014, allocations: 153.8 MB / 1.022 GB, free: 164 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.003401/0.8049, allocations: 2.497 MB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002794/0.8077, allocations: 1.52 MB / 1.026 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001524/0.8079, allocations: 7.938 kB / 1.026 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001959/0.8081, allocations: 31.78 kB / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004415/0.8086, allocations: 139.4 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005232/0.8091, allocations: 163.6 kB / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000399/0.8095, allocations: 354.9 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007489/0.8102, allocations: 367 kB / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002083/0.8105, allocations: 103.6 kB / 1.027 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002651/0.8107, allocations: 131.5 kB / 1.028 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.168e-05/0.8108, allocations: 12 kB / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003048/0.8111, allocations: 135.8 kB / 1.028 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.904e-05/0.8112, allocations: 79.78 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.083e-05/0.8113, allocations: 61.58 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003755/0.8117, allocations: 309.2 kB / 1.028 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.8117, allocations: 3.938 kB / 1.028 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.954e-06/0.8117, allocations: 0 / 1.028 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.8117, allocations: 0 / 1.028 GB, free: 10.24 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.0008646/0.8126, allocations: 0.5104 MB / 1.029 GB, free: 9.676 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.8126, allocations: 12.56 kB / 1.029 GB, free: 9.664 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006783/0.8133, allocations: 87.62 kB / 1.029 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003364/0.8136, allocations: 248.2 kB / 1.029 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.8137, allocations: 16.33 kB / 1.029 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.98e-05/0.8137, allocations: 23.94 kB / 1.029 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000641/0.8144, allocations: 378.2 kB / 1.029 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.8144, allocations: 4 kB / 1.029 GB, free: 8.852 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.229e-05/0.8144, allocations: 11.92 kB / 1.029 GB, free: 8.84 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.818e-05/0.8145, allocations: 24.31 kB / 1.029 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006209/0.8151, allocations: 340.6 kB / 1.03 GB, free: 8.48 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.817, allocations: 1.717 MB / 1.031 GB, free: 6.629 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006962/0.8177, allocations: 337 kB / 1.032 GB, free: 6.281 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002789/0.818, allocations: 161.5 kB / 1.032 GB, free: 6.117 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001499/0.8181, allocations: 89.11 kB / 1.032 GB, free: 6.012 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.8182, allocations: 30.56 kB / 1.032 GB, free: 5.973 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 2.444e-06/0.8182, allocations: 4 kB / 1.032 GB, free: 5.969 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21): time 0.00138/0.8196, allocations: 0.6172 MB / 1.033 GB, free: 5.324 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.478e-05/0.8196, allocations: 77.11 kB / 1.033 GB, free: 5.23 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.8198, allocations: 207.7 kB / 1.033 GB, free: 5.02 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.011e-05/0.8199, allocations: 25.7 kB / 1.033 GB, free: 4.988 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.82, allocations: 167.9 kB / 1.033 GB, free: 4.82 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.321e-05/0.8201, allocations: 70.91 kB / 1.033 GB, free: 4.75 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.704e-05/0.8201, allocations: 8 kB / 1.033 GB, free: 4.742 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.8203, allocations: 330.8 kB / 1.033 GB, free: 4.41 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002558/0.8205, allocations: 128.5 kB / 1.034 GB, free: 4.285 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003222/0.8209, allocations: 228 kB / 1.034 GB, free: 4.027 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002865/0.8211, allocations: 153.8 kB / 1.034 GB, free: 3.879 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.8212, allocations: 0 / 1.034 GB, free: 3.879 MB / 0.7794 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007899/0.822, allocations: 443.4 kB / 1.034 GB, free: 3.441 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001184/0.8221, allocations: 170.7 kB / 1.035 GB, free: 3.234 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.8221, allocations: 4 kB / 1.035 GB, free: 3.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002411/0.8223, allocations: 40.83 kB / 1.035 GB, free: 3.188 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003087/0.8227, allocations: 71.88 kB / 1.035 GB, free: 3.117 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001444/0.8241, allocations: 1.505 MB / 1.036 GB, free: 1.477 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002178/0.8244, allocations: 39.92 kB / 1.036 GB, free: 1.438 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.631e-05/0.8244, allocations: 8 kB / 1.036 GB, free: 1.43 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.655e-06/0.8244, allocations: 4 kB / 1.036 GB, free: 1.426 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007265/0.8251, allocations: 372.5 kB / 1.037 GB, free: 1.059 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.8251, allocations: 0 / 1.037 GB, free: 1.059 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001355/0.8253, allocations: 36.83 kB / 1.037 GB, free: 1.02 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002651/0.8256, allocations: 71.88 kB / 1.037 GB, free: 0.9492 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/0.8268, allocations: 1.489 MB / 1.038 GB, free: 15.32 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.827, allocations: 35.94 kB / 1.038 GB, free: 15.29 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.195e-05/0.827, allocations: 12 kB / 1.038 GB, free: 15.27 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002045/0.8272, allocations: 240.9 kB / 1.038 GB, free: 15.03 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.448e-05/0.8273, allocations: 19.75 kB / 1.038 GB, free: 15.01 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006939/0.828, allocations: 369.7 kB / 1.039 GB, free: 14.64 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.828, allocations: 0 / 1.039 GB, free: 14.64 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.828, allocations: 4 kB / 1.039 GB, free: 14.64 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.828, allocations: 0 / 1.039 GB, free: 14.64 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00141/0.8294, allocations: 0.9755 MB / 1.04 GB, free: 13.58 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.8294, allocations: 0 / 1.04 GB, free: 13.58 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00023/0.8297, allocations: 55.95 kB / 1.04 GB, free: 13.53 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001197/0.8298, allocations: 40.97 kB / 1.04 GB, free: 13.48 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.971e-05/0.8298, allocations: 4 kB / 1.04 GB, free: 13.48 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001081/0.8309, allocations: 1.406 MB / 1.041 GB, free: 11.94 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.8309, allocations: 0 / 1.041 GB, free: 11.94 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007137/0.8316, allocations: 0.5546 MB / 1.042 GB, free: 11.35 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.8318, allocations: 124.8 kB / 1.042 GB, free: 11.21 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.556e-05/0.8318, allocations: 4 kB / 1.042 GB, free: 11.21 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002255/0.832, allocations: 27.91 kB / 1.042 GB, free: 11.18 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.459e-05/0.8321, allocations: 27.94 kB / 1.042 GB, free: 11.15 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.8322, allocations: 4 kB / 1.042 GB, free: 11.15 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001445/0.8323, allocations: 159 kB / 1.042 GB, free: 10.99 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8323, allocations: 0 / 1.042 GB, free: 10.99 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006638/0.833, allocations: 104 kB / 1.042 GB, free: 10.89 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001691/0.8332, allocations: 107.2 kB / 1.042 GB, free: 10.78 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001331/0.8345, allocations: 0.7497 MB / 1.043 GB, free: 10 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.8345, allocations: 0 / 1.043 GB, free: 10 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004116/0.8349, allocations: 275.2 kB / 1.043 GB, free: 9.723 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005109/0.8355, allocations: 31.98 kB / 1.043 GB, free: 9.691 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.8365, allocations: 0.6664 MB / 1.044 GB, free: 8.973 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003676/0.8369, allocations: 0.7756 MB / 1.045 GB, free: 8.172 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002474/0.8371, allocations: 86 kB / 1.045 GB, free: 8.09 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.423e-05/0.8372, allocations: 23.42 kB / 1.045 GB, free: 8.066 MB / 0.795 GB Notification: Performance of SimCode: time 2.6e-07/0.8372, allocations: 3.938 kB / 1.045 GB, free: 8.062 MB / 0.795 GB Notification: Performance of Templates: time 0.006553/0.8438, allocations: 2.974 MB / 1.048 GB, free: 5.098 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches