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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009548/0.0009589, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.0009994/0.0009995, allocations: 177.3 kB / 15.95 MB, free: 216 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.416/1.416, allocations: 223.2 MB / 239.9 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.655/2.655, allocations: 436.5 MB / 0.7104 GB, free: 7.801 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003662/0.0003662, allocations: 11.94 kB / 0.8708 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8662/0.8666, allocations: 153.7 MB / 1.021 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.003707/0.8703, allocations: 2.455 MB / 1.023 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002722/0.8731, allocations: 1.497 MB / 1.025 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001625/0.8733, allocations: 4 kB / 1.025 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.8734, allocations: 27.78 kB / 1.025 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004139/0.8739, allocations: 123.6 kB / 1.025 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004886/0.8744, allocations: 163.6 kB / 1.025 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002709/0.8746, allocations: 179.6 kB / 1.025 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006626/0.8753, allocations: 362.9 kB / 1.025 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001503/0.8755, allocations: 83.69 kB / 1.026 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00023/0.8757, allocations: 99.66 kB / 1.026 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.51e-05/0.8757, allocations: 8 kB / 1.026 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002731/0.876, allocations: 139.8 kB / 1.026 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.773e-05/0.8761, allocations: 67.81 kB / 1.026 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.006e-05/0.8762, allocations: 61.58 kB / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003534/0.8765, allocations: 309.2 kB / 1.026 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.8766, allocations: 0 / 1.026 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.272e-06/0.8766, allocations: 0 / 1.026 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.8766, allocations: 0 / 1.026 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.0008408/0.8774, allocations: 0.5027 MB / 1.027 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.8775, allocations: 11.98 kB / 1.027 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007193/0.8782, allocations: 107.5 kB / 1.027 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003388/0.8785, allocations: 250.7 kB / 1.027 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.8786, allocations: 20.33 kB / 1.027 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.234e-05/0.8786, allocations: 19.94 kB / 1.027 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005927/0.8792, allocations: 382 kB / 1.027 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.8793, allocations: 0 / 1.027 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.8793, allocations: 11.98 kB / 1.027 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.619e-05/0.8794, allocations: 24.31 kB / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005688/0.8799, allocations: 340.6 kB / 1.028 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001757/0.8817, allocations: 1.728 MB / 1.03 GB, free: 7.844 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006567/0.8824, allocations: 337 kB / 1.03 GB, free: 7.496 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001566/0.8825, allocations: 93.08 kB / 1.03 GB, free: 7.387 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.8826, allocations: 34.56 kB / 1.03 GB, free: 7.344 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 1.473e-06/0.8826, allocations: 0 / 1.03 GB, free: 7.344 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21): time 0.001311/0.8839, allocations: 0.6135 MB / 1.031 GB, free: 6.703 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/0.884, allocations: 89.11 kB / 1.031 GB, free: 6.598 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/0.8842, allocations: 199.7 kB / 1.031 GB, free: 6.395 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.8842, allocations: 33.7 kB / 1.031 GB, free: 6.355 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.8843, allocations: 155.9 kB / 1.031 GB, free: 6.199 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.348e-05/0.8844, allocations: 74.98 kB / 1.031 GB, free: 6.125 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.715e-05/0.8844, allocations: 4 kB / 1.031 GB, free: 6.121 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001481/0.8846, allocations: 326.8 kB / 1.031 GB, free: 5.793 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002337/0.8848, allocations: 140.5 kB / 1.032 GB, free: 5.656 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002767/0.8851, allocations: 212 kB / 1.032 GB, free: 5.414 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002734/0.8854, allocations: 165.5 kB / 1.032 GB, free: 5.254 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.8854, allocations: 4 kB / 1.032 GB, free: 5.25 MB / 0.7794 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007342/0.8861, allocations: 438.9 kB / 1.032 GB, free: 4.816 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.000445/0.8866, allocations: 1.043 MB / 1.033 GB, free: 3.691 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.8866, allocations: 7.984 kB / 1.033 GB, free: 3.684 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002642/0.8869, allocations: 48.77 kB / 1.033 GB, free: 3.633 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000285/0.8872, allocations: 71.88 kB / 1.033 GB, free: 3.562 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001372/0.8885, allocations: 1.501 MB / 1.035 GB, free: 1.922 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002077/0.8888, allocations: 31.91 kB / 1.035 GB, free: 1.891 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.909e-05/0.8888, allocations: 23.94 kB / 1.035 GB, free: 1.867 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.913e-06/0.8888, allocations: 4 kB / 1.035 GB, free: 1.863 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006487/0.8895, allocations: 364.4 kB / 1.035 GB, free: 1.504 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.016e-06/0.8895, allocations: 4.281 kB / 1.035 GB, free: 1.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001176/0.8896, allocations: 48.81 kB / 1.035 GB, free: 1.449 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002512/0.8899, allocations: 67.89 kB / 1.035 GB, free: 1.383 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001149/0.891, allocations: 1.505 MB / 1.037 GB, free: 15.73 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001735/0.8912, allocations: 27.88 kB / 1.037 GB, free: 15.71 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.8912, allocations: 12 kB / 1.037 GB, free: 15.7 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.0001976/0.8914, allocations: 240.9 kB / 1.037 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.746e-05/0.8915, allocations: 19.88 kB / 1.037 GB, free: 15.43 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006555/0.8922, allocations: 366 kB / 1.038 GB, free: 15.06 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.8922, allocations: 8 kB / 1.038 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.8922, allocations: 0 / 1.038 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-06/0.8922, allocations: 4 kB / 1.038 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001358/0.8936, allocations: 0.9698 MB / 1.039 GB, free: 14.01 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.8936, allocations: 4 kB / 1.039 GB, free: 14 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002172/0.8938, allocations: 55.89 kB / 1.039 GB, free: 13.95 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001079/0.8939, allocations: 41.05 kB / 1.039 GB, free: 13.91 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.196e-05/0.894, allocations: 8 kB / 1.039 GB, free: 13.9 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001027/0.895, allocations: 1.413 MB / 1.04 GB, free: 12.36 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.895, allocations: 4.031 kB / 1.04 GB, free: 12.35 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006988/0.8957, allocations: 0.6177 MB / 1.041 GB, free: 11.65 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.8958, allocations: 132.7 kB / 1.041 GB, free: 11.5 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.571e-05/0.8959, allocations: 12 kB / 1.041 GB, free: 11.49 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/0.8961, allocations: 23.97 kB / 1.041 GB, free: 11.47 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.406e-05/0.8962, allocations: 31.91 kB / 1.041 GB, free: 11.44 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.618e-05/0.8962, allocations: 8 kB / 1.041 GB, free: 11.43 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001284/0.8963, allocations: 159 kB / 1.041 GB, free: 11.27 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8963, allocations: 0 / 1.041 GB, free: 11.27 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005842/0.8969, allocations: 104 kB / 1.041 GB, free: 11.17 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.0001535/0.8971, allocations: 107.2 kB / 1.041 GB, free: 11.06 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0012/0.8983, allocations: 0.7422 MB / 1.042 GB, free: 10.29 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.8983, allocations: 0 / 1.042 GB, free: 10.29 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004034/0.8987, allocations: 279.3 kB / 1.042 GB, free: 10.01 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003152/0.8991, allocations: 35.91 kB / 1.042 GB, free: 9.973 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009621/0.9, allocations: 0.6568 MB / 1.043 GB, free: 9.27 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003578/0.9004, allocations: 0.7756 MB / 1.044 GB, free: 8.469 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002209/0.9006, allocations: 85.86 kB / 1.044 GB, free: 8.387 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.807e-05/0.9007, allocations: 23.42 kB / 1.044 GB, free: 8.363 MB / 0.795 GB Notification: Performance of SimCode: time 3.1e-07/0.9007, allocations: 0 / 1.044 GB, free: 8.363 MB / 0.795 GB Notification: Performance of Templates: time 0.005922/0.9066, allocations: 2.976 MB / 1.047 GB, free: 5.395 MB / 0.795 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","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches