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.001157/0.001157, allocations: 102.5 kB / 16.27 MB, free: 5.98 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.001185/0.001185, allocations: 189.8 kB / 17.19 MB, free: 5.605 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.41/1.41, allocations: 222.9 MB / 240.9 MB, free: 15.19 MB / 206.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.683/2.683, allocations: 437 MB / 0.711 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 64.31 kB / 0.8699 GB, free: 2.195 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3469/0.3485, allocations: 151.6 MB / 1.018 GB, free: 10.64 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.005421/0.3539, allocations: 2.895 MB / 1.021 GB, free: 7.73 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.003189/0.3572, allocations: 1.804 MB / 1.023 GB, free: 5.914 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002272/0.3574, allocations: 4 kB / 1.023 GB, free: 5.91 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0009252/0.3584, allocations: 235.5 kB / 1.023 GB, free: 5.68 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0006376/0.3591, allocations: 203 kB / 1.023 GB, free: 5.48 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000662/0.3597, allocations: 227.9 kB / 1.023 GB, free: 5.258 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004521/0.3602, allocations: 311.1 kB / 1.023 GB, free: 4.953 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004111/0.3606, allocations: 174.3 kB / 1.024 GB, free: 4.777 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002859/0.3609, allocations: 135.5 kB / 1.024 GB, free: 4.645 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003808/0.3613, allocations: 147.5 kB / 1.024 GB, free: 4.5 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.585e-05/0.3614, allocations: 20 kB / 1.024 GB, free: 4.48 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005915/0.362, allocations: 279.5 kB / 1.024 GB, free: 4.207 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001261/0.3621, allocations: 83.73 kB / 1.024 GB, free: 4.125 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.3623, allocations: 119.5 kB / 1.024 GB, free: 4.008 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0006983/0.363, allocations: 427 kB / 1.025 GB, free: 3.59 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.363, allocations: 0 / 1.025 GB, free: 3.59 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.974e-06/0.363, allocations: 4 kB / 1.025 GB, free: 3.586 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.069e-05/0.363, allocations: 0 / 1.025 GB, free: 3.586 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.001101/0.3641, allocations: 0.5535 MB / 1.025 GB, free: 2.98 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.3642, allocations: 8.031 kB / 1.025 GB, free: 2.973 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001037/0.3652, allocations: 116.5 kB / 1.025 GB, free: 2.859 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000359/0.3656, allocations: 264.4 kB / 1.026 GB, free: 2.562 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.3656, allocations: 16.73 kB / 1.026 GB, free: 2.547 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.431e-05/0.3657, allocations: 20.38 kB / 1.026 GB, free: 2.527 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006863/0.3664, allocations: 390.5 kB / 1.026 GB, free: 2.113 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.3664, allocations: 4 kB / 1.026 GB, free: 2.109 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.312e-05/0.3664, allocations: 4 kB / 1.026 GB, free: 2.105 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-05/0.3665, allocations: 28.31 kB / 1.026 GB, free: 2.078 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007144/0.3672, allocations: 340.6 kB / 1.026 GB, free: 1.746 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002037/0.3693, allocations: 1.736 MB / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007257/0.37, allocations: 329.1 kB / 1.028 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000274/0.3703, allocations: 149.6 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001565/0.3705, allocations: 93.08 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.3705, allocations: 46.48 kB / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=20): time 1.844e-06/0.3705, allocations: 0 / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of matching and sorting (n=21): time 0.001426/0.3719, allocations: 0.5919 MB / 1.029 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.372, allocations: 77.11 kB / 1.029 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002761/0.3723, allocations: 211.7 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.3723, allocations: 41.62 kB / 1.03 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.3724, allocations: 151.9 kB / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.59e-05/0.3725, allocations: 78.94 kB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.3726, allocations: 53.98 kB / 1.03 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.3728, allocations: 334.8 kB / 1.03 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003167/0.3731, allocations: 141.9 kB / 1.03 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003619/0.3734, allocations: 215.8 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006398/0.3741, allocations: 384.8 kB / 1.031 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3741, allocations: 0 / 1.031 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009087/0.375, allocations: 441.9 kB / 1.031 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.3751, allocations: 4 kB / 1.031 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.3751, allocations: 4 kB / 1.031 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002446/0.3753, allocations: 44.81 kB / 1.031 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003448/0.3757, allocations: 71.88 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001524/0.3772, allocations: 1.615 MB / 1.033 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003326/0.3776, allocations: 35.81 kB / 1.033 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.507e-05/0.3776, allocations: 19.98 kB / 1.033 GB, free: 10.44 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003783/0.378, allocations: 240 kB / 1.033 GB, free: 10.2 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003193/0.3783, allocations: 203.6 kB / 1.034 GB, free: 9.965 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005701/0.3789, allocations: 356.6 kB / 1.034 GB, free: 9.578 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.534e-06/0.3789, allocations: 0 / 1.034 GB, free: 9.578 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0008629/0.3798, allocations: 423.6 kB / 1.034 GB, free: 9.156 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.3798, allocations: 8 kB / 1.034 GB, free: 9.148 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.3798, allocations: 4 kB / 1.034 GB, free: 9.145 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000149/0.38, allocations: 49.12 kB / 1.034 GB, free: 9.094 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003026/0.3803, allocations: 67.89 kB / 1.034 GB, free: 9.027 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001345/0.3816, allocations: 1.612 MB / 1.036 GB, free: 7.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003048/0.3819, allocations: 31.94 kB / 1.036 GB, free: 7.238 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.823e-05/0.382, allocations: 15.98 kB / 1.036 GB, free: 7.223 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.0001524/0.3821, allocations: 198.5 kB / 1.036 GB, free: 7.023 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.865e-05/0.3822, allocations: 23.66 kB / 1.036 GB, free: 7 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006963/0.3829, allocations: 356 kB / 1.037 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.3829, allocations: 0 / 1.037 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.383, allocations: 8 kB / 1.037 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.383, allocations: 0 / 1.037 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001463/0.3844, allocations: 0.9638 MB / 1.038 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.3845, allocations: 4 kB / 1.038 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002443/0.3847, allocations: 55.83 kB / 1.038 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001308/0.3848, allocations: 40.83 kB / 1.038 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/0.3849, allocations: 8 kB / 1.038 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001138/0.386, allocations: 1.516 MB / 1.039 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.386, allocations: 0 / 1.039 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007156/0.3868, allocations: 0.5409 MB / 1.04 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001225/0.3869, allocations: 124.7 kB / 1.04 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.42e-05/0.3869, allocations: 15.88 kB / 1.04 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002725/0.3872, allocations: 19.97 kB / 1.04 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.281e-05/0.3873, allocations: 23.91 kB / 1.04 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.3873, allocations: 16 kB / 1.04 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001956/0.3875, allocations: 159 kB / 1.04 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3875, allocations: 0 / 1.04 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006445/0.3882, allocations: 112 kB / 1.04 GB, free: 2.766 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.0001817/0.3884, allocations: 106 kB / 1.04 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001488/0.3899, allocations: 0.7732 MB / 1.041 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3899, allocations: 0 / 1.041 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004055/0.3903, allocations: 266.5 kB / 1.041 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004929/0.3908, allocations: 37.83 kB / 1.041 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/0.3919, allocations: 0.6004 MB / 1.042 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.3923, allocations: 0.7678 MB / 1.043 GB, free: 108 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.3924, allocations: 27.44 kB / 1.043 GB, free: 80 kB / 0.8106 GB Notification: Performance of SimCode: time 4.81e-07/0.3924, allocations: 0 / 1.043 GB, free: 80 kB / 0.8106 GB Notification: Performance of Templates: time 0.007445/0.3998, allocations: 4.309 MB / 1.047 GB, free: 11.77 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 -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