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.001549/0.001549, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001604/0.001604, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.501/1.501, allocations: 222.9 MB / 240.9 MB, free: 15.24 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.605/2.605, allocations: 437.1 MB / 0.7111 GB, free: 4.523 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 64.14 kB / 0.8699 GB, free: 2.211 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3489/0.3509, 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.004925/0.3559, allocations: 2.891 MB / 1.021 GB, free: 7.742 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.003176/0.3591, allocations: 1.816 MB / 1.023 GB, free: 5.914 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001359/0.3592, allocations: 4 kB / 1.023 GB, free: 5.91 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0008553/0.3601, allocations: 227.1 kB / 1.023 GB, free: 5.688 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0004925/0.3606, allocations: 207 kB / 1.023 GB, free: 5.484 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005519/0.3612, allocations: 227.9 kB / 1.023 GB, free: 5.262 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.000386/0.3616, allocations: 307 kB / 1.024 GB, free: 4.961 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003666/0.362, allocations: 177 kB / 1.024 GB, free: 4.785 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002022/0.3622, allocations: 131.5 kB / 1.024 GB, free: 4.656 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002866/0.3625, allocations: 143.5 kB / 1.024 GB, free: 4.516 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.857e-05/0.3625, allocations: 24 kB / 1.024 GB, free: 4.492 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004722/0.363, allocations: 287.4 kB / 1.024 GB, free: 4.211 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.3631, allocations: 83.73 kB / 1.024 GB, free: 4.129 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.3633, allocations: 115.5 kB / 1.024 GB, free: 4.016 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0005639/0.3639, allocations: 431 kB / 1.025 GB, free: 3.594 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3639, allocations: 0 / 1.025 GB, free: 3.594 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.562e-06/0.3639, allocations: 0 / 1.025 GB, free: 3.594 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.71e-06/0.3639, allocations: 0 / 1.025 GB, free: 3.594 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.001008/0.3649, allocations: 0.5535 MB / 1.025 GB, free: 2.988 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.3649, allocations: 11.97 kB / 1.025 GB, free: 2.977 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009731/0.3659, allocations: 116.5 kB / 1.025 GB, free: 2.863 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.3663, allocations: 258.5 kB / 1.026 GB, free: 2.574 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.674e-05/0.3663, allocations: 12.75 kB / 1.026 GB, free: 2.562 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.473e-05/0.3664, allocations: 20.31 kB / 1.026 GB, free: 2.543 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007083/0.3671, allocations: 390.5 kB / 1.026 GB, free: 2.129 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.3671, allocations: 0 / 1.026 GB, free: 2.129 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.425e-05/0.3672, allocations: 8 kB / 1.026 GB, free: 2.121 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.699e-05/0.3672, allocations: 28.3 kB / 1.026 GB, free: 2.094 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007328/0.368, allocations: 344.6 kB / 1.027 GB, free: 1.758 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002164/0.3702, allocations: 1.744 MB / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007379/0.3709, allocations: 329.1 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002861/0.3712, allocations: 149.6 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001589/0.3714, allocations: 89.09 kB / 1.029 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.331e-05/0.3714, allocations: 42.5 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=20): time 2.796e-06/0.3714, allocations: 0 / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of matching and sorting (n=21): time 0.001469/0.3729, allocations: 0.5902 MB / 1.029 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.673e-05/0.373, allocations: 81.11 kB / 1.029 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002832/0.3733, allocations: 215.9 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.847e-05/0.3733, allocations: 29.7 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.3734, allocations: 159.9 kB / 1.03 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 8.576e-05/0.3735, allocations: 74.94 kB / 1.03 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.3736, allocations: 57.97 kB / 1.03 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001606/0.3738, allocations: 326.8 kB / 1.03 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003283/0.3741, allocations: 153.8 kB / 1.03 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003816/0.3745, allocations: 215.8 kB / 1.031 GB, free: 13.24 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006713/0.3752, allocations: 389.1 kB / 1.031 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3752, allocations: 0 / 1.031 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009713/0.3762, allocations: 433.8 kB / 1.031 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.3762, allocations: 8 kB / 1.031 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.3762, allocations: 0 / 1.031 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000252/0.3765, allocations: 49.17 kB / 1.031 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003623/0.3769, allocations: 67.88 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001761/0.3786, allocations: 1.611 MB / 1.033 GB, free: 10.51 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000337/0.379, allocations: 39.8 kB / 1.033 GB, free: 10.47 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.927e-05/0.379, allocations: 12.06 kB / 1.033 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000427/0.3795, allocations: 244 kB / 1.033 GB, free: 10.22 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003804/0.3799, allocations: 215.1 kB / 1.034 GB, free: 9.969 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006251/0.3805, allocations: 356.8 kB / 1.034 GB, free: 9.582 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.693e-06/0.3805, allocations: 0 / 1.034 GB, free: 9.582 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0009251/0.3814, allocations: 422 kB / 1.034 GB, free: 9.16 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.3815, allocations: 7.938 kB / 1.034 GB, free: 9.152 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.3815, allocations: 4 kB / 1.034 GB, free: 9.148 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001598/0.3816, allocations: 36.83 kB / 1.034 GB, free: 9.109 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003198/0.382, allocations: 75.88 kB / 1.034 GB, free: 9.035 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001614/0.3836, allocations: 1.612 MB / 1.036 GB, free: 7.277 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003061/0.3839, allocations: 35.97 kB / 1.036 GB, free: 7.242 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.348e-05/0.384, allocations: 8 kB / 1.036 GB, free: 7.234 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.0001896/0.3841, allocations: 196.2 kB / 1.036 GB, free: 7.035 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.926e-05/0.3842, allocations: 27.64 kB / 1.036 GB, free: 7.008 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007625/0.385, allocations: 358.2 kB / 1.037 GB, free: 6.652 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.385, allocations: 4 kB / 1.037 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.385, allocations: 0 / 1.037 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.385, allocations: 0 / 1.037 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001618/0.3867, allocations: 0.9638 MB / 1.038 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.3867, allocations: 4 kB / 1.038 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002429/0.3869, allocations: 55.83 kB / 1.038 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001322/0.3871, allocations: 41.05 kB / 1.038 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.731e-05/0.3871, allocations: 11.98 kB / 1.038 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001402/0.3885, allocations: 1.512 MB / 1.039 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.3885, allocations: 4.031 kB / 1.039 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007853/0.3893, allocations: 0.5353 MB / 1.04 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001667/0.3895, allocations: 128.7 kB / 1.04 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.432e-05/0.3895, allocations: 15.88 kB / 1.04 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002685/0.3898, allocations: 23.97 kB / 1.04 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.796e-05/0.3899, allocations: 23.91 kB / 1.04 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.113e-05/0.3899, allocations: 12 kB / 1.04 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002182/0.3902, allocations: 159 kB / 1.04 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3902, allocations: 0 / 1.04 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00064/0.3908, allocations: 116 kB / 1.04 GB, free: 2.77 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.0001811/0.391, allocations: 103.2 kB / 1.04 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001557/0.3926, allocations: 0.7651 MB / 1.041 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.249e-06/0.3926, allocations: 4 kB / 1.041 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004291/0.393, allocations: 267.9 kB / 1.041 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005011/0.3935, allocations: 40.41 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.001124/0.3947, allocations: 0.5921 MB / 1.042 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004874/0.3952, allocations: 0.7717 MB / 1.043 GB, free: 108 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.3953, allocations: 31.36 kB / 1.043 GB, free: 76 kB / 0.8106 GB Notification: Performance of SimCode: time 7.11e-07/0.3953, allocations: 3.938 kB / 1.043 GB, free: 72 kB / 0.8106 GB Notification: Performance of Templates: time 0.007293/0.4026, allocations: 4.294 MB / 1.047 GB, free: 11.78 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=400 -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