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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001576/0.001577, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00191/0.00191, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.458/1.458, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.768/2.768, allocations: 437 MB / 0.7104 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001513, allocations: 75.88 kB / 0.8692 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8303/0.8319, allocations: 151.6 MB / 1.017 GB, free: 2.527 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.006444/0.8384, allocations: 2.887 MB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003526/0.8419, allocations: 1.812 MB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002679/0.8422, allocations: 7.938 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0009999/0.8433, allocations: 219.1 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0007506/0.844, allocations: 207 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000793/0.8449, allocations: 227.5 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005971/0.8455, allocations: 314.9 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004293/0.8459, allocations: 174.4 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003022/0.8462, allocations: 127.5 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004155/0.8466, allocations: 151.5 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.078e-05/0.8467, allocations: 20 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006807/0.8474, allocations: 283.5 kB / 1.024 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.8476, allocations: 83.73 kB / 1.024 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001847/0.8477, allocations: 123.4 kB / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008666/0.8486, allocations: 428.8 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.8486, allocations: 0 / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.344e-06/0.8486, allocations: 0 / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.357e-05/0.8487, allocations: 0 / 1.024 GB, free: 11.48 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.00131/0.85, allocations: 0.5495 MB / 1.025 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.85, allocations: 12.03 kB / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001096/0.8511, allocations: 116.5 kB / 1.025 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004499/0.8516, allocations: 260.7 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.216e-05/0.8516, allocations: 12.75 kB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.753e-05/0.8517, allocations: 16.38 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008391/0.8526, allocations: 394.5 kB / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.8526, allocations: 0 / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.826e-05/0.8526, allocations: 8 kB / 1.025 GB, free: 10 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.765e-05/0.8527, allocations: 24.31 kB / 1.025 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007835/0.8535, allocations: 340.6 kB / 1.026 GB, free: 9.648 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00226/0.8558, allocations: 1.74 MB / 1.027 GB, free: 7.773 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007463/0.8565, allocations: 338.6 kB / 1.028 GB, free: 7.426 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002978/0.8568, allocations: 157.6 kB / 1.028 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001648/0.857, allocations: 85.11 kB / 1.028 GB, free: 7.164 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.002e-05/0.8571, allocations: 34.55 kB / 1.028 GB, free: 7.121 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 1.833e-06/0.8571, allocations: 0 / 1.028 GB, free: 7.121 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21): time 0.001569/0.8587, allocations: 0.5918 MB / 1.029 GB, free: 6.5 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.201e-05/0.8587, allocations: 81.11 kB / 1.029 GB, free: 6.402 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002891/0.859, allocations: 215.7 kB / 1.029 GB, free: 6.184 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.914e-05/0.8591, allocations: 29.7 kB / 1.029 GB, free: 6.148 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.8592, allocations: 160.1 kB / 1.029 GB, free: 5.988 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.711e-05/0.8593, allocations: 78.89 kB / 1.029 GB, free: 5.91 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.8594, allocations: 57.97 kB / 1.029 GB, free: 5.848 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.8595, allocations: 326.8 kB / 1.03 GB, free: 5.52 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003375/0.8599, allocations: 137.9 kB / 1.03 GB, free: 5.383 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003763/0.8603, allocations: 219.9 kB / 1.03 GB, free: 5.133 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006502/0.8609, allocations: 380.9 kB / 1.03 GB, free: 4.727 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.8609, allocations: 4 kB / 1.03 GB, free: 4.723 MB / 0.7794 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001048/0.862, allocations: 441.6 kB / 1.031 GB, free: 4.281 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.862, allocations: 5.875 kB / 1.031 GB, free: 4.277 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.8621, allocations: 8.031 kB / 1.031 GB, free: 4.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003162/0.8624, allocations: 45.16 kB / 1.031 GB, free: 4.223 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003679/0.8628, allocations: 79.81 kB / 1.031 GB, free: 4.145 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001877/0.8646, allocations: 1.607 MB / 1.032 GB, free: 2.395 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003514/0.865, allocations: 39.8 kB / 1.032 GB, free: 2.355 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.924e-05/0.8651, allocations: 16 kB / 1.032 GB, free: 2.34 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004012/0.8655, allocations: 244 kB / 1.033 GB, free: 2.098 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000351/0.8658, allocations: 211.5 kB / 1.033 GB, free: 1.852 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006364/0.8665, allocations: 348.6 kB / 1.033 GB, free: 1.473 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.081e-06/0.8665, allocations: 4 kB / 1.033 GB, free: 1.469 MB / 0.7794 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0009384/0.8675, allocations: 421.7 kB / 1.034 GB, free: 1.047 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/0.8675, allocations: 4.375 kB / 1.034 GB, free: 1.043 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.8675, allocations: 8 kB / 1.034 GB, free: 1.035 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001537/0.8676, allocations: 40.81 kB / 1.034 GB, free: 0.9922 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003025/0.868, allocations: 71.89 kB / 1.034 GB, free: 0.9219 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001408/0.8694, allocations: 1.615 MB / 1.035 GB, free: 15.16 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003163/0.8697, allocations: 39.97 kB / 1.035 GB, free: 15.12 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.8697, allocations: 8 kB / 1.035 GB, free: 15.11 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.000195/0.8699, allocations: 192.2 kB / 1.036 GB, free: 14.92 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.353e-05/0.87, allocations: 27.66 kB / 1.036 GB, free: 14.89 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007176/0.8708, allocations: 353.6 kB / 1.036 GB, free: 14.54 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.79e-06/0.8708, allocations: 4 kB / 1.036 GB, free: 14.54 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.8708, allocations: 0 / 1.036 GB, free: 14.54 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.8708, allocations: 3.984 kB / 1.036 GB, free: 14.53 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001623/0.8724, allocations: 0.9693 MB / 1.037 GB, free: 13.48 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.8724, allocations: 4 kB / 1.037 GB, free: 13.48 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002361/0.8727, allocations: 55.83 kB / 1.037 GB, free: 13.43 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001353/0.8728, allocations: 37.05 kB / 1.037 GB, free: 13.39 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.62e-05/0.8729, allocations: 8 kB / 1.037 GB, free: 13.38 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001388/0.8743, allocations: 1.512 MB / 1.038 GB, free: 11.72 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.8743, allocations: 7.969 kB / 1.038 GB, free: 11.71 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007568/0.875, allocations: 0.5287 MB / 1.039 GB, free: 11.15 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001396/0.8752, allocations: 124.8 kB / 1.039 GB, free: 11.01 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.59e-05/0.8752, allocations: 15.83 kB / 1.039 GB, free: 10.99 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002867/0.8755, allocations: 31.91 kB / 1.039 GB, free: 10.96 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.444e-05/0.8756, allocations: 19.98 kB / 1.039 GB, free: 10.94 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.8757, allocations: 4 kB / 1.039 GB, free: 10.94 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002068/0.8759, allocations: 163 kB / 1.039 GB, free: 10.78 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.5e-07/0.8759, allocations: 0 / 1.039 GB, free: 10.78 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0007019/0.8766, allocations: 112 kB / 1.039 GB, free: 10.67 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.0002034/0.8768, allocations: 115.1 kB / 1.04 GB, free: 10.54 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001677/0.8785, allocations: 0.7749 MB / 1.04 GB, free: 9.742 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.8785, allocations: 0 / 1.04 GB, free: 9.742 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004506/0.879, allocations: 267.3 kB / 1.041 GB, free: 9.469 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007061/0.8797, allocations: 36.83 kB / 1.041 GB, free: 9.438 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.8811, allocations: 0.5556 MB / 1.041 GB, free: 8.836 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005377/0.8816, allocations: 0.7678 MB / 1.042 GB, free: 8.043 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003497/0.882, allocations: 101.8 kB / 1.042 GB, free: 7.945 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.8821, allocations: 23.42 kB / 1.042 GB, free: 7.922 MB / 0.795 GB Notification: Performance of SimCode: time 6.71e-07/0.8821, allocations: 0 / 1.042 GB, free: 7.922 MB / 0.795 GB Notification: Performance of Templates: time 0.009926/0.892, allocations: 3.402 MB / 1.045 GB, free: 4.531 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