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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009293/0.0009294, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.005635/0.005635, allocations: 171.2 kB / 16.26 MB, free: 6.613 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.29/1.29, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.48/2.48, allocations: 437.8 MB / 0.7121 GB, free: 7.02 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003355/0.0003356, allocations: 8 kB / 0.8729 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.636/0.6364, allocations: 153.8 MB / 1.023 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.003008/0.6394, allocations: 2.582 MB / 1.026 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002334/0.6418, allocations: 1.632 MB / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.6419, allocations: 4 kB / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.6421, allocations: 31.72 kB / 1.027 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004289/0.6425, allocations: 167.4 kB / 1.027 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000503/0.643, allocations: 207.5 kB / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004116/0.6434, allocations: 434.8 kB / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006757/0.6441, allocations: 375 kB / 1.028 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001878/0.6443, allocations: 115.5 kB / 1.029 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002465/0.6446, allocations: 131.5 kB / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.721e-05/0.6446, allocations: 12 kB / 1.029 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004181/0.645, allocations: 303.4 kB / 1.029 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.364e-05/0.6451, allocations: 79.78 kB / 1.029 GB, free: 9.75 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001039/0.6452, allocations: 133 kB / 1.029 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004498/0.6457, allocations: 412.9 kB / 1.03 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.6457, allocations: 0 / 1.03 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.362e-06/0.6457, allocations: 0 / 1.03 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.6457, allocations: 0 / 1.03 GB, free: 9.211 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.000702/0.6464, allocations: 0.5107 MB / 1.03 GB, free: 8.648 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.6465, allocations: 8.031 kB / 1.03 GB, free: 8.641 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.961e-05/0.6465, allocations: 62.72 kB / 1.03 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006523/0.6472, allocations: 88.56 kB / 1.03 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000262/0.6475, allocations: 257.2 kB / 1.03 GB, free: 8.195 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.569e-05/0.6475, allocations: 16.73 kB / 1.03 GB, free: 8.18 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.13e-05/0.6475, allocations: 20.38 kB / 1.03 GB, free: 8.16 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005729/0.6481, allocations: 390.4 kB / 1.031 GB, free: 7.746 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.6482, allocations: 3.938 kB / 1.031 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.882e-05/0.6482, allocations: 7.984 kB / 1.031 GB, free: 7.734 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.974e-05/0.6482, allocations: 28.31 kB / 1.031 GB, free: 7.703 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000585/0.6488, allocations: 332.6 kB / 1.031 GB, free: 7.379 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001651/0.6505, allocations: 1.724 MB / 1.033 GB, free: 5.52 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006674/0.6512, allocations: 333 kB / 1.033 GB, free: 5.176 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002562/0.6514, allocations: 157.6 kB / 1.033 GB, free: 5.016 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000132/0.6516, allocations: 93.08 kB / 1.033 GB, free: 4.906 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.6516, allocations: 34.56 kB / 1.033 GB, free: 4.863 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 1.703e-06/0.6516, allocations: 3.938 kB / 1.033 GB, free: 4.859 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21): time 0.001274/0.6529, allocations: 0.6173 MB / 1.034 GB, free: 4.215 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.389e-05/0.6529, allocations: 81.11 kB / 1.034 GB, free: 4.117 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.6531, allocations: 203.7 kB / 1.034 GB, free: 3.91 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.212e-05/0.6531, allocations: 29.7 kB / 1.034 GB, free: 3.875 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.965e-05/0.6532, allocations: 155.9 kB / 1.035 GB, free: 3.719 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.35e-05/0.6533, allocations: 74.91 kB / 1.035 GB, free: 3.645 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.173e-05/0.6533, allocations: 29.7 kB / 1.035 GB, free: 3.609 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.3e-05/0.6534, allocations: 334.8 kB / 1.035 GB, free: 3.273 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002418/0.6537, allocations: 136.5 kB / 1.035 GB, free: 3.141 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002785/0.654, allocations: 215.3 kB / 1.035 GB, free: 2.895 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005658/0.6545, allocations: 389.3 kB / 1.036 GB, free: 2.48 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.6546, allocations: 0 / 1.036 GB, free: 2.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007641/0.6553, allocations: 438 kB / 1.036 GB, free: 2.043 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 8.609e-05/0.6554, allocations: 170.5 kB / 1.036 GB, free: 1.836 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.6554, allocations: 4 kB / 1.036 GB, free: 1.832 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001938/0.6556, allocations: 44.81 kB / 1.036 GB, free: 1.785 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000299/0.656, allocations: 75.88 kB / 1.036 GB, free: 1.711 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001165/0.6571, allocations: 1.493 MB / 1.038 GB, free: 84 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/0.6574, allocations: 31.88 kB / 1.038 GB, free: 52 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/0.6574, allocations: 12.06 kB / 1.038 GB, free: 40 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.171e-06/0.6574, allocations: 4 kB / 1.038 GB, free: 36 kB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006845/0.6581, allocations: 382.7 kB / 1.038 GB, free: 15.66 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.6581, allocations: 4 kB / 1.038 GB, free: 15.66 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000121/0.6582, allocations: 41.17 kB / 1.038 GB, free: 15.61 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002585/0.6585, allocations: 71.88 kB / 1.038 GB, free: 15.54 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001048/0.6596, allocations: 1.489 MB / 1.04 GB, free: 13.91 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001838/0.6598, allocations: 31.81 kB / 1.04 GB, free: 13.88 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.6598, allocations: 16 kB / 1.04 GB, free: 13.87 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.0001681/0.66, allocations: 229.5 kB / 1.04 GB, free: 13.63 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.108e-05/0.66, allocations: 23.8 kB / 1.04 GB, free: 13.61 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006729/0.6607, allocations: 369.6 kB / 1.04 GB, free: 13.24 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.6607, allocations: 4 kB / 1.04 GB, free: 13.24 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.6607, allocations: 7.938 kB / 1.04 GB, free: 13.23 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.6607, allocations: 3.938 kB / 1.04 GB, free: 13.23 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001319/0.6621, allocations: 0.9638 MB / 1.041 GB, free: 12.18 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.6621, allocations: 4 kB / 1.041 GB, free: 12.18 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002231/0.6623, allocations: 51.89 kB / 1.041 GB, free: 12.13 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001176/0.6624, allocations: 45.05 kB / 1.041 GB, free: 12.08 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.6625, allocations: 0 / 1.041 GB, free: 12.08 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009544/0.6634, allocations: 1.413 MB / 1.043 GB, free: 10.54 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.86e-06/0.6634, allocations: 7.969 kB / 1.043 GB, free: 10.53 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006619/0.6641, allocations: 0.5394 MB / 1.043 GB, free: 9.953 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.6642, allocations: 132.8 kB / 1.044 GB, free: 9.805 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.08e-05/0.6643, allocations: 7.984 kB / 1.044 GB, free: 9.797 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000235/0.6645, allocations: 27.97 kB / 1.044 GB, free: 9.77 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.975e-05/0.6646, allocations: 23.92 kB / 1.044 GB, free: 9.746 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.6646, allocations: 4 kB / 1.044 GB, free: 9.742 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001231/0.6647, allocations: 159 kB / 1.044 GB, free: 9.586 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.81e-07/0.6647, allocations: 0 / 1.044 GB, free: 9.586 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005504/0.6653, allocations: 111.9 kB / 1.044 GB, free: 9.477 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.0009283/0.6662, allocations: 1.096 MB / 1.045 GB, free: 8.332 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001226/0.6675, allocations: 0.75 MB / 1.046 GB, free: 7.559 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.6675, allocations: 0 / 1.046 GB, free: 7.559 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000388/0.6679, allocations: 271.2 kB / 1.046 GB, free: 7.281 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004988/0.6684, allocations: 38.61 kB / 1.046 GB, free: 7.246 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003642/0.672, allocations: 3.106 MB / 1.049 GB, free: 3.938 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/0.6724, allocations: 0.7678 MB / 1.05 GB, free: 3.145 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.000227/0.6726, allocations: 85.86 kB / 1.05 GB, free: 3.062 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.6727, allocations: 67.41 kB / 1.05 GB, free: 2.996 MB / 0.795 GB Notification: Performance of SimCode: time 2.81e-07/0.6727, allocations: 8 kB / 1.05 GB, free: 2.988 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01468/0.6874, allocations: 5.15 MB / 1.055 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002139/0.6877, allocations: 234.5 kB / 1.055 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.764/2.452, allocations: 2.391 kB / 1.055 GB, free: 13.75 MB / 0.8106 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.fmu > 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