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.001514/0.001514, allocations: 114.3 kB / 16.37 MB, free: 5.539 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.001724/0.001724, allocations: 187.5 kB / 17.3 MB, free: 5.184 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.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.492/2.492, allocations: 437.1 MB / 0.7112 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002498/0.002498, allocations: 64.38 kB / 0.8707 GB, free: 1.434 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3406, allocations: 151.6 MB / 1.019 GB, free: 9.836 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004306/0.3449, allocations: 2.895 MB / 1.022 GB, free: 6.922 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002693/0.3476, allocations: 1.651 MB / 1.023 GB, free: 5.262 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.3478, allocations: 4 kB / 1.023 GB, free: 5.258 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0008151/0.3486, allocations: 243.4 kB / 1.023 GB, free: 5.02 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0004144/0.3491, allocations: 179.2 kB / 1.024 GB, free: 4.844 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.00056/0.3496, allocations: 232 kB / 1.024 GB, free: 4.617 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003412/0.35, allocations: 307 kB / 1.024 GB, free: 4.316 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003077/0.3503, allocations: 174.3 kB / 1.024 GB, free: 4.141 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/0.3505, allocations: 127.5 kB / 1.024 GB, free: 4.016 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002524/0.3507, allocations: 143.5 kB / 1.025 GB, free: 3.875 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.613e-05/0.3508, allocations: 27.94 kB / 1.025 GB, free: 3.848 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003703/0.3512, allocations: 255.5 kB / 1.025 GB, free: 3.598 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.65e-05/0.3513, allocations: 83.78 kB / 1.025 GB, free: 3.516 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001179/0.3514, allocations: 111.5 kB / 1.025 GB, free: 3.406 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0004558/0.3519, allocations: 426.7 kB / 1.025 GB, free: 2.988 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3519, allocations: 0 / 1.025 GB, free: 2.988 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.764e-06/0.3519, allocations: 0 / 1.025 GB, free: 2.988 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.102e-05/0.3519, allocations: 0 / 1.025 GB, free: 2.988 MB / 0.795 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.0009044/0.3528, allocations: 0.538 MB / 1.026 GB, free: 2.398 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.3529, allocations: 12.62 kB / 1.026 GB, free: 2.387 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007071/0.3536, allocations: 84.56 kB / 1.026 GB, free: 2.305 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003615/0.3539, allocations: 270.6 kB / 1.026 GB, free: 2.004 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.354, allocations: 12.75 kB / 1.026 GB, free: 1.992 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.335e-05/0.354, allocations: 20.36 kB / 1.026 GB, free: 1.973 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006029/0.3546, allocations: 382.5 kB / 1.027 GB, free: 1.566 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.3547, allocations: 0 / 1.027 GB, free: 1.566 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.899e-05/0.3547, allocations: 11.98 kB / 1.027 GB, free: 1.555 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.633e-05/0.3548, allocations: 24.31 kB / 1.027 GB, free: 1.527 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005744/0.3553, allocations: 332.6 kB / 1.027 GB, free: 1.203 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001825/0.3572, allocations: 1.72 MB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006965/0.3579, allocations: 325.1 kB / 1.029 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002621/0.3582, allocations: 149.6 kB / 1.029 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001613/0.3583, allocations: 93.09 kB / 1.029 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/0.3584, allocations: 34.56 kB / 1.029 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=20): time 1.343e-06/0.3584, allocations: 0 / 1.029 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of matching and sorting (n=21): time 0.001331/0.3597, allocations: 0.5948 MB / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.152e-05/0.3598, allocations: 85.23 kB / 1.03 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001857/0.36, allocations: 207.7 kB / 1.03 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.36, allocations: 29.7 kB / 1.03 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.249e-05/0.3601, allocations: 159.9 kB / 1.03 GB, free: 13.58 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.896e-05/0.3602, allocations: 74.94 kB / 1.03 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.275e-05/0.3603, allocations: 53.98 kB / 1.03 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.3604, allocations: 334.8 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002462/0.3606, allocations: 137.8 kB / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002868/0.3609, allocations: 211.9 kB / 1.031 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005667/0.3615, allocations: 379.3 kB / 1.031 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3615, allocations: 0 / 1.031 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007618/0.3623, allocations: 427.5 kB / 1.032 GB, free: 11.9 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.3623, allocations: 4 kB / 1.032 GB, free: 11.89 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.3623, allocations: 4 kB / 1.032 GB, free: 11.89 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002173/0.3626, allocations: 36.83 kB / 1.032 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002978/0.3629, allocations: 75.88 kB / 1.032 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001474/0.3643, allocations: 1.611 MB / 1.034 GB, free: 10.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002177/0.3646, allocations: 35.88 kB / 1.034 GB, free: 9.988 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.858e-05/0.3646, allocations: 16 kB / 1.034 GB, free: 9.973 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003142/0.3649, allocations: 232.6 kB / 1.034 GB, free: 9.742 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002877/0.3652, allocations: 215.7 kB / 1.034 GB, free: 9.492 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005249/0.3658, allocations: 341 kB / 1.034 GB, free: 9.121 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.793e-06/0.3658, allocations: 4 kB / 1.034 GB, free: 9.117 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0007284/0.3665, allocations: 403.6 kB / 1.035 GB, free: 8.715 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/0.3665, allocations: 8.375 kB / 1.035 GB, free: 8.707 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.3665, allocations: 8 kB / 1.035 GB, free: 8.699 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001461/0.3667, allocations: 44.81 kB / 1.035 GB, free: 8.652 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002521/0.367, allocations: 63.89 kB / 1.035 GB, free: 8.59 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00129/0.3683, allocations: 1.616 MB / 1.036 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001995/0.3685, allocations: 27.91 kB / 1.037 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.349e-05/0.3685, allocations: 16 kB / 1.037 GB, free: 6.785 MB / 0.8106 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.0001441/0.3687, allocations: 196.3 kB / 1.037 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.7e-05/0.3687, allocations: 23.78 kB / 1.037 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006684/0.3694, allocations: 356 kB / 1.037 GB, free: 6.207 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3694, allocations: 7.984 kB / 1.037 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.3694, allocations: 0 / 1.037 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.3694, allocations: 4 kB / 1.037 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001512/0.371, allocations: 0.9561 MB / 1.038 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.269e-06/0.371, allocations: 4 kB / 1.038 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002391/0.3712, allocations: 59.77 kB / 1.038 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001268/0.3714, allocations: 36.83 kB / 1.038 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.3714, allocations: 4 kB / 1.038 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001103/0.3725, allocations: 1.512 MB / 1.04 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3725, allocations: 4.031 kB / 1.04 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006833/0.3732, allocations: 0.5381 MB / 1.04 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001511/0.3734, allocations: 128.7 kB / 1.04 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.991e-05/0.3734, allocations: 15.88 kB / 1.04 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00023/0.3736, allocations: 19.97 kB / 1.04 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.272e-05/0.3737, allocations: 19.97 kB / 1.04 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.3738, allocations: 11.94 kB / 1.04 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001303/0.3739, allocations: 151 kB / 1.04 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3739, allocations: 0 / 1.04 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006232/0.3745, allocations: 112 kB / 1.041 GB, free: 2.352 MB / 0.8106 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.0001664/0.3747, allocations: 111.2 kB / 1.041 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001333/0.376, allocations: 0.7383 MB / 1.041 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3761, allocations: 0 / 1.041 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003878/0.3765, allocations: 271.9 kB / 1.042 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004753/0.3769, allocations: 35.53 kB / 1.042 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009458/0.3779, allocations: 0.5571 MB / 1.042 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000381/0.3783, allocations: 0.7677 MB / 1.043 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002154/0.3785, allocations: 101.8 kB / 1.043 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.15e-05/0.3786, allocations: 19.44 kB / 1.043 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.3786, allocations: 0 / 1.043 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of Templates: time 0.00678/0.3854, allocations: 3.279 MB / 1.046 GB, free: 12.38 MB / 0.8262 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 -s gbode -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) Reference file matches